libgcrypt: fix pkgsStatic build on darwin (#418816)

This commit is contained in:
Aleksana
2025-06-25 14:58:14 +08:00
committed by GitHub
+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
'';