2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, zlib, bzip2, xz, zstd, openssl }:
|
2020-12-07 18:41:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "minizip";
|
2021-01-20 04:24:29 +00:00
|
|
|
version = "2.10.6";
|
2020-12-07 18:41:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nmoinvaz";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-01-20 04:24:29 +00:00
|
|
|
sha256 = "sha256-OAm4OZeQdP2Q/UKYI9bR7OV9RmLmYF/j2NpK5TPoE60=";
|
2020-12-07 18:41:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=YES"
|
|
|
|
"-DMZ_OPENSSL=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ zlib bzip2 xz zstd openssl ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-12-07 18:41:38 +00:00
|
|
|
description = "Compression library implementing the deflate compression method found in gzip and PKZIP";
|
|
|
|
homepage = "https://github.com/nmoinvaz/minizip";
|
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|