haskell generic-builder: fix Darwin regression for lmdb
Recent updates to the generic builder have caused haskellPackages.lmdb-simple to fail to build on Darwin, since it cannot see the lmdb C dynamic library included by its dependent haskellPackages.lmdb. The C dynamic library has suffix `.so` not `.dylib`, so this fix allows for that. Closes #80190, but that issue may identify a preferable solution.
This commit is contained in:
parent
ade5a50b0f
commit
8c58c44aae
@ -384,7 +384,7 @@ stdenv.mkDerivation ({
|
||||
done
|
||||
|
||||
for d in $(grep '^dynamic-library-dirs:' "$packageConfDir"/* | cut -d' ' -f2- | tr ' ' '\n' | sort -u); do
|
||||
for lib in "$d/"*.dylib; do
|
||||
for lib in "$d/"*.{dylib,so}; do
|
||||
ln -s "$lib" "$dynamicLinksDir"
|
||||
done
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user