diff options
author | Profpatsch <mail@profpatsch.de> | 2016-11-18 16:17:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-18 16:17:14 +0100 |
commit | 247d7c88d228e26a3bfda4f157618ba858114821 (patch) | |
tree | 5a780f3a1e7eb949caacd6aac97d90cc26ed77c9 /pkgs/development/haskell-modules/configuration-ghcjs.nix | |
parent | b32a1c7244b8a78c8d84268f38830c6136b29e5c (diff) | |
download | nixpkgs-247d7c88d228e26a3bfda4f157618ba858114821.tar nixpkgs-247d7c88d228e26a3bfda4f157618ba858114821.tar.gz nixpkgs-247d7c88d228e26a3bfda4f157618ba858114821.tar.bz2 nixpkgs-247d7c88d228e26a3bfda4f157618ba858114821.tar.lz nixpkgs-247d7c88d228e26a3bfda4f157618ba858114821.tar.xz nixpkgs-247d7c88d228e26a3bfda4f157618ba858114821.tar.zst nixpkgs-247d7c88d228e26a3bfda4f157618ba858114821.zip |
haskell.packages.ghcjs: fix entropy (#20446)
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghcjs.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghcjs.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghcjs.nix b/pkgs/development/haskell-modules/configuration-ghcjs.nix index c97296cd5ba..b97cbd52fce 100644 --- a/pkgs/development/haskell-modules/configuration-ghcjs.nix +++ b/pkgs/development/haskell-modules/configuration-ghcjs.nix @@ -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 doesn’t find ghc in this script, since it’s 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 + ''; + }); + } |