depot/third_party/nixpkgs/pkgs/development/libraries/libzip/default.nix
Default email bb5b50588c Project import generated by Copybara.
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
2021-02-19 20:06:45 +01:00

42 lines
948 B
Nix

{ lib, stdenv
, cmake
, fetchpatch
, fetchurl
, perl
, zlib
}:
stdenv.mkDerivation rec {
pname = "libzip";
version = "1.7.3";
src = fetchurl {
url = "https://www.nih.at/libzip/${pname}-${version}.tar.gz";
sha256 = "1k5rihiz7m1ahhjzcbq759hb9crzqkgw78pkxga118y5a32pc8hf";
};
# Remove in next release
patches = [
(fetchpatch {
url = "https://github.com/nih-at/libzip/commit/351201419d79b958783c0cfc7c370243165523ac.patch";
sha256 = "0d93z98ki0yiaza93268cxkl35y1r7ll9f7l8sivx3nfxj2c1n8a";
})
];
outputs = [ "out" "dev" ];
nativeBuildInputs = [ cmake perl ];
propagatedBuildInputs = [ zlib ];
preCheck = ''
# regress/runtest is a generated file
patchShebangs regress
'';
meta = with lib; {
homepage = "https://www.nih.at/libzip";
description = "A C library for reading, creating and modifying zip archives";
license = licenses.bsd3;
platforms = platforms.unix;
};
}