Make the implementation clean

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

View File

@ -192,9 +192,9 @@ stdenv.mkDerivation ({
configureFlags+=" --extra-include-dirs=$p/include"
fi
if [ -d "$p/lib" ]; then
configureFlags+=" --extra-lib-dirs=$p/lib"${
stdenv.lib.optionalString stdenv.isDarwin
"; export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$p/lib;"
configureFlags+=" --extra-lib-dirs=$p/lib"
${ stdenv.lib.optionalString stdenv.isDarwin
"export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$p/lib"
}
fi
done