1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

Extend Haskell generic builder to use new --ipid flag.

This commit is contained in:
Peter Simons 2016-10-04 21:32:09 +02:00
parent 4e576faa1c
commit ec8b816154

View file

@ -180,6 +180,11 @@ stdenv.mkDerivation ({
setupCompileFlags="${concatStringsSep " " setupCompileFlags}"
configureFlags="${concatStringsSep " " defaultConfigureFlags} $configureFlags"
${optionalString (stdenv.lib.versionOlder "8" ghc.version) ''
ipid=$(echo $(basename "$out") | cut -d- -f1)
configureFlags+=" --ipid=$ipid"
''}
local inputClosure=""
for i in $propagatedNativeBuildInputs $nativeBuildInputs; do
findInputs $i inputClosure propagated-native-build-inputs