Skip to content

Commit 1c7b92b

Browse files
authored
ghcWithPackages: more robust searching for dylib to link on macOS (#411741)
2 parents 81da63b + f6c188f commit 1c7b92b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/development/haskell-modules/with-packages-wrapper.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ else
156156
157157
# Boot libraries are located differently than other libraries since GHC 9.6, so handle them separately.
158158
if [[ -x "${bootLibDir}" ]]; then
159-
ln -s "${bootLibDir}"/*.dylib $dynamicLinksDir
159+
find "${bootLibDir}" -name '*.dylib' -exec ln -s {} "$dynamicLinksDir" \;
160160
fi
161161
162162
for d in $(grep -Poz "dynamic-library-dirs:\s*\K .+\n" $packageConfDir/*|awk '{print $2}'|sort -u); do
163-
ln -s $d/*.dylib $dynamicLinksDir
163+
find "$d" -name '*.dylib' -exec ln -s {} "$dynamicLinksDir" \;
164164
done
165165
for f in $packageConfDir/*.conf; do
166166
# Initially, $f is a symlink to a read-only file in one of the inputs

0 commit comments

Comments
 (0)