haskell: Fix depending on libs with internal libs on darwin.
Thanks to @hamishmack for the pointer. Fixes #33149.
This commit is contained in:
parent
bc5bf95858
commit
34a91b7922
@ -243,7 +243,7 @@ stdenv.mkDerivation ({
|
|||||||
# libraries) from all the dependencies.
|
# libraries) from all the dependencies.
|
||||||
local dynamicLinksDir="$out/lib/links"
|
local dynamicLinksDir="$out/lib/links"
|
||||||
mkdir -p $dynamicLinksDir
|
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
|
ln -s "$d/"*.dylib $dynamicLinksDir
|
||||||
done
|
done
|
||||||
# Edit the local package DB to reference the links directory.
|
# Edit the local package DB to reference the links directory.
|
||||||
|
Loading…
Reference in New Issue
Block a user