Change if to optionalString

This commit is contained in:
Christian Gram Kalhauge 2016-07-21 14:23:56 +02:00
parent de5a2ee034
commit 9bca29d4ef

View File

@ -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