haskell: use GHCJS to build Setup.hs for GHCJS packages

Closes https://github.com/NixOS/nixpkgs/pull/23614.
This commit is contained in:
Leon Isenberg
2017-03-29 20:30:28 +02:00
committed by Peter Simons
parent 80a52e22b3
commit 2553ceb982
5 changed files with 24 additions and 2 deletions
@@ -15,6 +15,7 @@ let
mkDerivationImpl = pkgs.callPackage ./generic-builder.nix {
inherit stdenv;
inherit (pkgs) fetchurl pkgconfig glibcLocales coreutils gnugrep gnused;
nodejs = pkgs.nodejs-slim;
jailbreak-cabal = if (self.ghc.cross or null) != null
then self.ghc.bootPkgs.jailbreak-cabal
else self.jailbreak-cabal;