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

43 lines
948 B
Nix
Raw Normal View History

{ 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";
})
];
2018-08-08 18:55:33 +00:00
outputs = [ "out" "dev" ];
2016-04-25 11:51:29 +00:00
nativeBuildInputs = [ cmake perl ];
propagatedBuildInputs = [ zlib ];
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; {
2020-03-06 21:39:46 +00:00
homepage = "https://www.nih.at/libzip";
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;
};
}