mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
ghcWithPackages: more robust searching for dylib to link on macOS (#411741)
This commit is contained in:
commit
1c7b92be21
1 changed files with 2 additions and 2 deletions
|
@ -156,11 +156,11 @@ else
|
||||||
|
|
||||||
# Boot libraries are located differently than other libraries since GHC 9.6, so handle them separately.
|
# Boot libraries are located differently than other libraries since GHC 9.6, so handle them separately.
|
||||||
if [[ -x "${bootLibDir}" ]]; then
|
if [[ -x "${bootLibDir}" ]]; then
|
||||||
ln -s "${bootLibDir}"/*.dylib $dynamicLinksDir
|
find "${bootLibDir}" -name '*.dylib' -exec ln -s {} "$dynamicLinksDir" \;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for d in $(grep -Poz "dynamic-library-dirs:\s*\K .+\n" $packageConfDir/*|awk '{print $2}'|sort -u); do
|
for d in $(grep -Poz "dynamic-library-dirs:\s*\K .+\n" $packageConfDir/*|awk '{print $2}'|sort -u); do
|
||||||
ln -s $d/*.dylib $dynamicLinksDir
|
find "$d" -name '*.dylib' -exec ln -s {} "$dynamicLinksDir" \;
|
||||||
done
|
done
|
||||||
for f in $packageConfDir/*.conf; do
|
for f in $packageConfDir/*.conf; do
|
||||||
# Initially, $f is a symlink to a read-only file in one of the inputs
|
# Initially, $f is a symlink to a read-only file in one of the inputs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue