diff --git a/pkgs/by-name/li/libarchive/package.nix b/pkgs/by-name/li/libarchive/package.nix index 1cfcfd29c4b7..7fd71b4ed95a 100644 --- a/pkgs/by-name/li/libarchive/package.nix +++ b/pkgs/by-name/li/libarchive/package.nix @@ -102,14 +102,15 @@ stdenv.mkDerivation (finalAttrs: { acl ]; - hardeningDisable = [ "strictflexarrays3" ]; + hardeningDisable = [ + "strictflexarrays3" + ] + # some tests won't compile because this makes memcpy a macro: + # libarchive/test/test_write_format_mtree_preset_digests.c:2020:29: error: macro "memcpy" passed 66 arguments, but takes just 3 + ++ lib.optional stdenv.hostPlatform.isCygwin "fortify"; configureFlags = lib.optional (!xarSupport) "--without-xml2"; - preBuild = lib.optionalString stdenv.hostPlatform.isCygwin '' - echo "#include " >> config.h - ''; - # https://github.com/libarchive/libarchive/issues/1475 doCheck = !stdenv.hostPlatform.isMusl;