1 { lib, stdenv, fetchFromGitHub
3 , withZlibCompat ? false
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 sha256 = "1cl6asrav2512j7p02zcpibywjljws0m7aazvb3q2r9qiyvyswji";
17 outputs = [ "out" "dev" "bin" ];
19 nativeBuildInputs = [ cmake pkg-config ];
22 "-DCMAKE_INSTALL_PREFIX=/"
23 "-DBUILD_SHARED_LIBS=ON"
25 ] ++ lib.optionals withZlibCompat [ "-DZLIB_COMPAT=ON" ];
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 ];