haskell: Fix depending on libs with internal libs on darwin.

Thanks to @hamishmack for the pointer.

Fixes #33149.
This commit is contained in:
Shea Levy
2018-01-02 11:37:54 -05:00
parent bc5bf95858
commit 34a91b7922

View File

@@ -243,7 +243,7 @@ stdenv.mkDerivation ({
# libraries) from all the dependencies.
local dynamicLinksDir="$out/lib/links"
mkdir -p $dynamicLinksDir
for d in $(grep dynamic-library-dirs "$packageConfDir/"*|awk '{print $2}'); do
for d in $(grep dynamic-library-dirs "$packageConfDir/"*|awk '{print $2}'|sort -u); do
ln -s "$d/"*.dylib $dynamicLinksDir
done
# Edit the local package DB to reference the links directory.