Merge pull request #36841 from obsidiansystems/cabal2nix-system-hostPlatform

callCabal2nix: Use host platform rather than build platform for evaluation of Cabal files
This commit is contained in:
John Ericson 2018-03-12 00:42:36 -04:00 committed by GitHub
commit 13c5a5705d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"
'';
};