Reduce computation time for non-darwin users
This commit is contained in:
parent
ab46f69802
commit
de5a2ee034
@ -192,10 +192,12 @@ stdenv.mkDerivation ({
|
|||||||
configureFlags+=" --extra-include-dirs=$p/include"
|
configureFlags+=" --extra-include-dirs=$p/include"
|
||||||
fi
|
fi
|
||||||
if [ -d "$p/lib" ]; then
|
if [ -d "$p/lib" ]; then
|
||||||
configureFlags+=" --extra-lib-dirs=$p/lib"
|
configureFlags+=" --extra-lib-dirs=$p/lib"${
|
||||||
if [[ ${ if stdenv.isDarwin then "yes" else "no"} = "yes" ]]; then
|
if stdenv.isDarwin then
|
||||||
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$p/lib;
|
"; export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$p/lib;"
|
||||||
fi
|
else
|
||||||
|
""
|
||||||
|
}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
${ghcCommand}-pkg --${packageDbFlag}="$packageConfDir" recache
|
${ghcCommand}-pkg --${packageDbFlag}="$packageConfDir" recache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user