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:
parent
bbce88302a
commit
97d9071b95
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue