callCabal2nix: Use host platform rather than build platform for evaluation of Cabal files

This commit is contained in:
Ken Micklas 2018-03-11 22:02:32 -04:00
parent e31f49f671
commit f34e136a04

View File

@ -120,7 +120,7 @@ let
installPhase = ''
export HOME="$TMP"
mkdir -p "$out"
cabal2nix --compiler=${ghc.haskellCompilerName} --system=${stdenv.system} ${sha256Arg} "${src}" ${extraCabal2nixOptions} > "$out/default.nix"
cabal2nix --compiler=${ghc.haskellCompilerName} --system=${hostPlatform.system} ${sha256Arg} "${src}" ${extraCabal2nixOptions} > "$out/default.nix"
'';
};