mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
Extend Haskell generic builder to use new --ipid flag.
This commit is contained in:
parent
4e576faa1c
commit
ec8b816154
@ -180,6 +180,11 @@ stdenv.mkDerivation ({
|
|||||||
setupCompileFlags="${concatStringsSep " " setupCompileFlags}"
|
setupCompileFlags="${concatStringsSep " " setupCompileFlags}"
|
||||||
configureFlags="${concatStringsSep " " defaultConfigureFlags} $configureFlags"
|
configureFlags="${concatStringsSep " " defaultConfigureFlags} $configureFlags"
|
||||||
|
|
||||||
|
${optionalString (stdenv.lib.versionOlder "8" ghc.version) ''
|
||||||
|
ipid=$(echo $(basename "$out") | cut -d- -f1)
|
||||||
|
configureFlags+=" --ipid=$ipid"
|
||||||
|
''}
|
||||||
|
|
||||||
local inputClosure=""
|
local inputClosure=""
|
||||||
for i in $propagatedNativeBuildInputs $nativeBuildInputs; do
|
for i in $propagatedNativeBuildInputs $nativeBuildInputs; do
|
||||||
findInputs $i inputClosure propagated-native-build-inputs
|
findInputs $i inputClosure propagated-native-build-inputs
|
||||||
|
Loading…
Reference in New Issue
Block a user