linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / zlib-ng / default.nix
blob7ba07cd92407fe95b6fdcca16d3f48aa3bb918ad
1 { lib, stdenv, fetchFromGitHub
2 , cmake, pkg-config
3 , withZlibCompat ? false
4 }:
6 stdenv.mkDerivation rec {
7   pname = "zlib-ng";
8   version = "2.0.2";
10   src = fetchFromGitHub {
11     owner = "zlib-ng";
12     repo = "zlib-ng";
13     rev = version;
14     sha256 = "1cl6asrav2512j7p02zcpibywjljws0m7aazvb3q2r9qiyvyswji";
15   };
17   outputs = [ "out" "dev" "bin" ];
19   nativeBuildInputs = [ cmake pkg-config ];
21   cmakeFlags = [
22     "-DCMAKE_INSTALL_PREFIX=/"
23     "-DBUILD_SHARED_LIBS=ON"
24     "-DINSTALL_UTILS=ON"
25   ] ++ lib.optionals withZlibCompat [ "-DZLIB_COMPAT=ON" ];
27   meta = with lib; {
28     description = "zlib data compression library for the next generation systems";
29     homepage    = "https://github.com/zlib-ng/zlib-ng";
30     license     = licenses.zlib;
31     platforms   = platforms.all;
32     maintainers = with maintainers; [ izorkin ];
33   };