nixpkgs/pkgs/by-name/zl/zlib-ng/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
894 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
2023-06-21 12:50:37 +00:00
, cmake, pkg-config, gtest
2021-03-31 07:32:46 +00:00
, withZlibCompat ? false
}:
stdenv.mkDerivation rec {
pname = "zlib-ng";
2024-09-17 21:43:11 +00:00
version = "2.2.2";
2021-03-31 07:32:46 +00:00
src = fetchFromGitHub {
owner = "zlib-ng";
repo = "zlib-ng";
rev = version;
2024-09-17 21:43:11 +00:00
hash = "sha256-FeOIFlFMDDd+5EDyr8KKW3G03UDM2xx4QF/wyKyDjq4=";
2021-03-31 07:32:46 +00:00
};
outputs = [ "out" "dev" "bin" ];
strictDeps = true;
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ gtest ];
2021-03-31 07:32:46 +00:00
cmakeFlags = [
"-DCMAKE_INSTALL_PREFIX=/"
"-DBUILD_SHARED_LIBS=ON"
"-DINSTALL_UTILS=ON"
] ++ lib.optionals withZlibCompat [ "-DZLIB_COMPAT=ON" ];
meta = with lib; {
description = "zlib data compression library for the next generation systems";
homepage = "https://github.com/zlib-ng/zlib-ng";
license = licenses.zlib;
platforms = platforms.all;
maintainers = with maintainers; [ izorkin ];
};
}