1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00

ghcjs: use native ghc to build Setup.hs

This commit is contained in:
Charles Strahan 2016-02-18 03:11:42 -05:00
parent bbce88302a
commit 97d9071b95

View file

@ -125,15 +125,8 @@ let
ghcEnv = ghc.withPackages (p: haskellBuildInputs);
setupBuilder = if isGhcjs
then (if !(builtins.elem pname ["Cabal" "hscolour"])
then ghcCommand
else "${nativeGhc}/bin/ghc")
else ghcCommand;
setupCommand = if isGhcjs && !(builtins.elem pname ["Cabal" "hscolour"])
then "${ghc.nodejs}/bin/node ./Setup.jsexe/all.js"
else "./Setup";
setupBuilder = if isGhcjs then "${nativeGhc}/bin/ghc" else ghcCommand;
setupCommand = "./Setup";
ghcCommand = if isGhcjs then "ghcjs" else "ghc";
ghcCommandCaps = toUpper ghcCommand;