nixpkgs/pkgs/development/libraries/libzip/default.nix

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

48 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv
, cmake
, fetchurl
, perl
, zlib
, groff
, withBzip2 ? false
, bzip2
, withLZMA ? false
, xz
, withOpenssl ? false
, openssl
2021-06-23 09:04:59 +00:00
, withZstd ? false
, zstd
}:
stdenv.mkDerivation rec {
pname = "libzip";
2021-06-23 09:04:59 +00:00
version = "1.8.0";
src = fetchurl {
url = "https://libzip.org/download/${pname}-${version}.tar.gz";
2021-06-23 09:04:59 +00:00
sha256 = "17l3ygrnbszm3b99dxmw94wcaqpbljzg54h4c0y8ss8aij35bvih";
};
outputs = [ "out" "dev" "man" ];
2016-04-25 11:51:29 +00:00
nativeBuildInputs = [ cmake perl groff ];
propagatedBuildInputs = [ zlib ];
buildInputs = lib.optionals withLZMA [ xz ]
++ lib.optionals withBzip2 [ bzip2 ]
2021-06-23 09:04:59 +00:00
++ lib.optionals withOpenssl [ openssl ]
++ lib.optionals withZstd [ zstd ];
2018-08-08 18:55:33 +00:00
preCheck = ''
# regress/runtest is a generated file
2018-08-08 18:55:33 +00:00
patchShebangs regress
2016-04-27 00:46:36 +00:00
'';
meta = with lib; {
homepage = "https://libzip.org/";
description = "A C library for reading, creating and modifying zip archives";
2018-08-09 09:13:29 +00:00
license = licenses.bsd3;
platforms = platforms.unix;
changelog = "https://github.com/nih-at/libzip/blob/v${version}/NEWS.md";
};
}