20 stdenv.mkDerivation (finalAttrs: {
25 url = "https://libzip.org/download/libzip-${finalAttrs.version}.tar.gz";
26 hash = "sha256-aypDg3AF4cI/3+5TK3j4BoY+QS0gibnEK0mrCMvNdmU=";
40 propagatedBuildInputs = [ zlib ];
42 lib.optionals withLZMA [ xz ]
43 ++ lib.optionals withBzip2 [ bzip2 ]
44 ++ lib.optionals withOpenssl [ openssl ]
45 ++ lib.optionals withZstd [ zstd ];
47 # Don't build the regression tests because they don't build with
48 # pkgsStatic and are not executed anyway.
49 cmakeFlags = [ "-DBUILD_REGRESS=0" ];
52 # regress/runtest is a generated file
56 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
59 homepage = "https://libzip.org/";
60 description = "C library for reading, creating and modifying zip archives";
61 license = licenses.bsd3;
62 pkgConfigModules = [ "libzip" ];
63 platforms = platforms.unix;
64 changelog = "https://github.com/nih-at/libzip/blob/v${finalAttrs.version}/NEWS.md";