-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump to latest versions of our TH libraries
This requires bumping a lot of other deps to work with th-abstraction 0.4.
- Loading branch information
1 parent
7b2bc20
commit 60e066d
Showing
27 changed files
with
358 additions
and
479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
diff --git a/ghcjs-base.cabal b/ghcjs-base.cabal | ||
index 7012e61..c314726 100644 | ||
--- a/ghcjs-base.cabal | ||
+++ b/ghcjs-base.cabal | ||
@@ -1,4 +1,4 @@ | ||
-cabal-version: 3.0 | ||
+cabal-version: 2.0 | ||
name: ghcjs-base | ||
version: 0.2.0.3 | ||
synopsis: base library for GHCJS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ lib, fetchgit }: | ||
|
||
self: super: { | ||
_dep = super._dep or {} // { | ||
textSrc = fetchgit { | ||
url = "https://github.com/obsidiansystems/text.git"; | ||
rev = "50076be0262203f0d2afdd0b190a341878a08e21"; | ||
sha256 = "1vy7a81b1vcbfhv7l3m7p4hx365ss13mzbzkjn9751bn4n7x2ydd"; | ||
}; | ||
ghcjsBaseTextJSStringSrc = super.ghcjs-base.src.overrideAttrs (drv: { | ||
outputHash = "1pdxlb67f94bl2b6k0m4flpjbf07g7fgqbyjnki4y57a5r0iympd"; | ||
postFetch = (drv.postFetch or "") + '' | ||
( cd $out | ||
patch -p1 < ${./ghcjs-base-text-jsstring.patch} | ||
) | ||
''; | ||
}); | ||
}; | ||
|
||
ghc = super.ghc.overrideAttrs (drv: { | ||
postUnpack = '' | ||
set -x | ||
( | ||
echo $sourceRoot | ||
cd $sourceRoot | ||
rm -r lib/boot/pkg/text | ||
cp --no-preserve=mode -r "${self._dep.textSrc}" lib/boot/pkg/text | ||
cp --no-preserve=mode -r "${self._dep.ghcjsBaseTextJSStringSrc}" lib/boot/pkg/ghcjs-base | ||
unpackFile ${super.dlist.src} | ||
chmod +w dlist-* | ||
mv dlist-* lib/boot/pkg/dlist | ||
unpackFile ${super.vector.src} | ||
chmod +w vector-* | ||
mv vector-* lib/boot/pkg/vector | ||
unpackFile ${super.primitive.src} | ||
chmod +w primitive-* | ||
mv primitive-* lib/boot/pkg/primitive | ||
sed -i 's/.\/pkg\/mtl/.\/pkg\/mtl\n - .\/pkg\/ghcjs-base\n - .\/pkg\/dlist\n - .\/pkg\/primitive\n - .\/pkg\/vector/' lib/boot/boot.yaml | ||
cat lib/boot/boot.yaml | ||
) | ||
''; | ||
}); | ||
|
||
dlist = null; | ||
ghcjs-base = null; | ||
primitive = null; | ||
vector = null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.