libgcrypt: fix pkgsStatic build on darwin

This commit is contained in:
Benjamin Sparks
2025-06-21 21:24:23 +02:00
parent 4e8e453704
commit 2de7371200
+1 -1
View File
@@ -95,7 +95,7 @@ stdenv.mkDerivation rec {
# TODO: figure out why this is even necessary and why the missing dylib only crashes
# random instead of every test
preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
preCheck = lib.optionalString (stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isStatic) ''
mkdir -p $lib/lib
cp src/.libs/libgcrypt.20.dylib $lib/lib
'';