haskell-generic-builder: Add extra framework dirs

Just like with the other `--extra-*` flags, cc/ld-wrapper already handles
this, but we need to make Cabal aware so that the haskell builds have
the correct metadata.
This commit is contained in:
John Ericson 2018-05-13 10:53:09 -04:00
parent 974fa94fd8
commit c6f742b770

View File

@ -248,6 +248,9 @@ stdenv.mkDerivation ({
if [ -d "$p/lib" ]; then
configureFlags+=" --extra-lib-dirs=$p/lib"
fi
if [[ -d "$p/Library/Frameworks" ]]; then
configureFlags+=" --extra-framework-dirs=$p/Library/Frameworks"
fi
done
''
# only use the links hack if we're actually building dylibs. otherwise, the