2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenv, zlib, autoreconfHook, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2022-02-20 05:27:41 +00:00
|
|
|
pname = "minizip";
|
2023-08-22 20:05:09 +00:00
|
|
|
inherit (zlib) src version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2023-45853.patch";
|
|
|
|
url = "https://github.com/madler/zlib/commit/73331a6a0481067628f065ffe87bb1d8f787d10c.patch";
|
|
|
|
hash = "sha256-yayfe1g9HsvgMN28WF/MYkH7dGMX4PsK53FcnfL3InM=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
patchFlags = [ "-p3" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
|
|
|
sourceRoot = "zlib-${zlib.version}/contrib/minizip";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Compression library implementing the deflate compression method found in gzip and PKZIP";
|
|
|
|
inherit (zlib.meta) license homepage;
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|