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);
|
ghcEnv = ghc.withPackages (p: haskellBuildInputs);
|
||||||
|
|
||||||
setupBuilder = if isGhcjs
|
setupBuilder = if isGhcjs then "${nativeGhc}/bin/ghc" else ghcCommand;
|
||||||
then (if !(builtins.elem pname ["Cabal" "hscolour"])
|
setupCommand = "./Setup";
|
||||||
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";
|
|
||||||
ghcCommand = if isGhcjs then "ghcjs" else "ghc";
|
ghcCommand = if isGhcjs then "ghcjs" else "ghc";
|
||||||
ghcCommandCaps = toUpper ghcCommand;
|
ghcCommandCaps = toUpper ghcCommand;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue