mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
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