about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/minizip2/default.nix
blob: 16bb2b8d44e6a4584209b8fe632140f4f6f53c72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, zlib, bzip2, xz, zstd, openssl }:

stdenv.mkDerivation rec {
  pname = "minizip";
  version = "2.10.4";

  src = fetchFromGitHub {
    owner = "nmoinvaz";
    repo = pname;
    rev = version;
    sha256 = "15bbagngvm738prkzv7lfs64pn4pq7jkhwz571j0w0nb5nw9c01x";
  };

  nativeBuildInputs = [ cmake pkg-config ];

  cmakeFlags = [
    "-DBUILD_SHARED_LIBS=YES"
    "-DMZ_OPENSSL=ON"
  ];

  buildInputs = [ zlib bzip2 xz zstd openssl ];

  meta = with lib; {
    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;
  };
}