minizip-ng: fix darwin build

fixes `error: ISO C++17 does not allow 'register' storage class specifier`

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
2025-01-17 12:59:32 +01:00
parent 7442b7f8fa
commit 055426762b
+2
View File
@@ -48,6 +48,8 @@ stdenv.mkDerivation (finalAttrs: {
"-DMZ_LIBCOMP=OFF"
];
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-register";
postInstall = ''
# make lib findable as libminizip-ng even if compat is enabled
for ext in so dylib a ; do