Merge pull request #22057 from shlevy/haskell-modules-cross-env
(haskellPackages.callPackage foo).env: Set the right env vars when cross-compiling
This commit is contained in:
commit
24fed4d344
@ -148,8 +148,10 @@ let
|
|||||||
|
|
||||||
setupBuilder = if isCross || isGhcjs then "${nativeGhc}/bin/ghc" else ghcCommand;
|
setupBuilder = if isCross || isGhcjs then "${nativeGhc}/bin/ghc" else ghcCommand;
|
||||||
setupCommand = "./Setup";
|
setupCommand = "./Setup";
|
||||||
ghcCommand = if isGhcjs then "ghcjs" else if isCross then "${ghc.cross.config}-ghc" else "ghc";
|
ghcCommand' = if isGhcjs then "ghcjs" else "ghc";
|
||||||
ghcCommandCaps = toUpper ghcCommand;
|
crossPrefix = if (ghc.cross or null) != null then "${ghc.cross.config}-" else "";
|
||||||
|
ghcCommand = "${crossPrefix}${ghcCommand'}";
|
||||||
|
ghcCommandCaps= lib.toUpper ghcCommand';
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user