Change if to optionalString
This commit is contained in:
parent
de5a2ee034
commit
9bca29d4ef
@ -193,10 +193,8 @@ stdenv.mkDerivation ({
|
||||
fi
|
||||
if [ -d "$p/lib" ]; then
|
||||
configureFlags+=" --extra-lib-dirs=$p/lib"${
|
||||
if stdenv.isDarwin then
|
||||
stdenv.lib.optionalString stdenv.isDarwin
|
||||
"; export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$p/lib;"
|
||||
else
|
||||
""
|
||||
}
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user