summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghcjs.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-07-09 12:22:23 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-07-09 18:09:17 -0400
commit740cfffcb2ea32ae2ea888ac685d883e3ad3c36a (patch)
tree7f0221778868087f8db080e70b960f1e5a55faab /pkgs/development/haskell-modules/configuration-ghcjs.nix
parentf27f491784cd19abca6494ae28306deeea17c613 (diff)
downloadnixpkgs-740cfffcb2ea32ae2ea888ac685d883e3ad3c36a.tar
nixpkgs-740cfffcb2ea32ae2ea888ac685d883e3ad3c36a.tar.gz
nixpkgs-740cfffcb2ea32ae2ea888ac685d883e3ad3c36a.tar.bz2
nixpkgs-740cfffcb2ea32ae2ea888ac685d883e3ad3c36a.tar.lz
nixpkgs-740cfffcb2ea32ae2ea888ac685d883e3ad3c36a.tar.xz
nixpkgs-740cfffcb2ea32ae2ea888ac685d883e3ad3c36a.tar.zst
nixpkgs-740cfffcb2ea32ae2ea888ac685d883e3ad3c36a.zip
haskell infra: Fix built-time overrides
These should all come from `buildHaskellPackages`
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghcjs.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghcjs.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghcjs.nix b/pkgs/development/haskell-modules/configuration-ghcjs.nix
index 0482d03ba8f..f1a60f5ea87 100644
--- a/pkgs/development/haskell-modules/configuration-ghcjs.nix
+++ b/pkgs/development/haskell-modules/configuration-ghcjs.nix
@@ -23,9 +23,9 @@ self: super:
       };
   in stage1 // stage2 // {
 
-  network = addBuildTools super.network (pkgs.lib.optional pkgs.stdenv.isDarwin pkgs.darwin.libiconv);
-  zlib = addBuildTools super.zlib (pkgs.lib.optional pkgs.stdenv.isDarwin pkgs.darwin.libiconv);
-  unix-compat = addBuildTools super.unix-compat (pkgs.lib.optional pkgs.stdenv.isDarwin pkgs.darwin.libiconv);
+  network = addBuildTools super.network (pkgs.lib.optional pkgs.buildPlatform.isDarwin pkgs.buildPackages.darwin.libiconv);
+  zlib = addBuildTools super.zlib (pkgs.lib.optional pkgs.buildPlatform.isDarwin pkgs.buildPackages.darwin.libiconv);
+  unix-compat = addBuildTools super.unix-compat (pkgs.lib.optional pkgs.buildPlatform.isDarwin pkgs.buildPackages.darwin.libiconv);
 
   # LLVM is not supported on this GHC; use the latest one.
   inherit (pkgs) llvmPackages;
@@ -121,7 +121,7 @@ self: super:
   });
 
   ghcjs-dom-jsffi = overrideCabal super.ghcjs-dom-jsffi (drv: {
-    setupHaskellDepends = (drv.setupHaskellDepends or []) ++ [ self.Cabal_1_24_2_0 ];
+    setupHaskellDepends = (drv.setupHaskellDepends or []) ++ [ self.buildHaskellPackages.Cabal_1_24_2_0 ];
     libraryHaskellDepends = (drv.libraryHaskellDepends or []) ++ [ self.ghcjs-base self.text ];
     isLibrary = true;
   });