diff options
author | Charles Strahan <charles.c.strahan@gmail.com> | 2015-05-06 15:56:02 -0400 |
---|---|---|
committer | Charles Strahan <charles.c.strahan@gmail.com> | 2015-05-08 11:33:44 -0400 |
commit | 929dc4199a57b5d21eb72077f735eb33c4c7b09b (patch) | |
tree | 2d5ebe677c30872b8cc9a26a16498ea727789d6c /pkgs/development/haskell-modules/configuration-ghcjs.nix | |
parent | 9cb6ebe15ee0a272fe648f8806edbccddbb5c6c1 (diff) | |
download | nixlib-929dc4199a57b5d21eb72077f735eb33c4c7b09b.tar nixlib-929dc4199a57b5d21eb72077f735eb33c4c7b09b.tar.gz nixlib-929dc4199a57b5d21eb72077f735eb33c4c7b09b.tar.bz2 nixlib-929dc4199a57b5d21eb72077f735eb33c4c7b09b.tar.lz nixlib-929dc4199a57b5d21eb72077f735eb33c4c7b09b.tar.xz nixlib-929dc4199a57b5d21eb72077f735eb33c4c7b09b.tar.zst nixlib-929dc4199a57b5d21eb72077f735eb33c4c7b09b.zip |
ghcjs: properly wrap binaries in environment
This also: 1 Builds Setup.hs with ghcjs, which (among other things) defines __GHCJS__ and ghcjs_HOST_OS during pre-processing. 2 Fixes ghc-paths to point at ghcjs and use NIX_GHCJS_* env-vars. 3 Boots ghcjs into $prefix/lib/$compiler.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghcjs.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghcjs.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghcjs.nix b/pkgs/development/haskell-modules/configuration-ghcjs.nix index e880f7e713e8..aef6e6c9190c 100644 --- a/pkgs/development/haskell-modules/configuration-ghcjs.nix +++ b/pkgs/development/haskell-modules/configuration-ghcjs.nix @@ -99,4 +99,8 @@ self: super: { buildDepends = [ self.base self.mtl self.text self.ghcjs-base ]; }); + ghc-paths = overrideCabal super.ghc-paths (drv: { + patches = [ ./ghc-paths-nix-ghcjs.patch ]; + }); + } |