1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

haskell.packages.ghcjs: fix entropy (#20446)

This commit is contained in:
Profpatsch 2016-11-18 16:17:14 +01:00 committed by GitHub
parent b32a1c7244
commit 247d7c88d2

View file

@ -130,4 +130,13 @@ self: super:
# https://github.com/haskell/haddock/issues/553
wai = dontHaddock super.wai;
cereal = addBuildDepend super.cereal [ self.fail ];
entropy = overrideCabal super.entropy (old: {
postPatch = old.postPatch or "" + ''
# cabal doesnt find ghc in this script, since its in the bootPkgs
sed -e '/Simple.Program/a import Distribution.Simple.Program.Types' \
-e 's|mConf.*=.*$|mConf = Just $ simpleConfiguredProgram "ghc" (FoundOnSystem "${self.ghc.bootPkgs.ghc}/bin/ghc")|g' -i Setup.hs
'';
});
}