nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 47 lines 1.1 kB view raw
1{ lib, stdenv 2, cmake 3, fetchurl 4, perl 5, zlib 6, groff 7, withBzip2 ? false 8, bzip2 9, withLZMA ? false 10, xz 11, withOpenssl ? false 12, openssl 13, withZstd ? false 14, zstd 15}: 16 17stdenv.mkDerivation rec { 18 pname = "libzip"; 19 version = "1.8.0"; 20 21 src = fetchurl { 22 url = "https://libzip.org/download/${pname}-${version}.tar.gz"; 23 sha256 = "17l3ygrnbszm3b99dxmw94wcaqpbljzg54h4c0y8ss8aij35bvih"; 24 }; 25 26 outputs = [ "out" "dev" "man" ]; 27 28 nativeBuildInputs = [ cmake perl groff ]; 29 propagatedBuildInputs = [ zlib ]; 30 buildInputs = lib.optionals withLZMA [ xz ] 31 ++ lib.optionals withBzip2 [ bzip2 ] 32 ++ lib.optionals withOpenssl [ openssl ] 33 ++ lib.optionals withZstd [ zstd ]; 34 35 preCheck = '' 36 # regress/runtest is a generated file 37 patchShebangs regress 38 ''; 39 40 meta = with lib; { 41 homepage = "https://libzip.org/"; 42 description = "A C library for reading, creating and modifying zip archives"; 43 license = licenses.bsd3; 44 platforms = platforms.unix; 45 changelog = "https://github.com/nih-at/libzip/blob/v${version}/NEWS.md"; 46 }; 47}