2020-12-12 01:04:16 +00:00
|
|
|
{ lib, stdenv
|
|
|
|
, cmake
|
|
|
|
, fetchpatch
|
|
|
|
, fetchurl
|
|
|
|
, perl
|
|
|
|
, zlib
|
|
|
|
}:
|
2007-11-11 16:19:00 +00:00
|
|
|
|
2012-02-09 14:09:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libzip";
|
2020-12-12 01:04:16 +00:00
|
|
|
version = "1.7.3";
|
2015-04-06 11:11:51 +01:00
|
|
|
|
2009-04-22 00:18:09 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://www.nih.at/libzip/${pname}-${version}.tar.gz";
|
2020-12-12 01:04:16 +00:00
|
|
|
sha256 = "1k5rihiz7m1ahhjzcbq759hb9crzqkgw78pkxga118y5a32pc8hf";
|
2009-04-22 00:18:09 +01:00
|
|
|
};
|
2015-04-06 11:11:51 +01:00
|
|
|
|
2020-12-12 01:04:16 +00:00
|
|
|
# Remove in next release
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/nih-at/libzip/commit/351201419d79b958783c0cfc7c370243165523ac.patch";
|
|
|
|
sha256 = "0d93z98ki0yiaza93268cxkl35y1r7ll9f7l8sivx3nfxj2c1n8a";
|
|
|
|
})
|
|
|
|
];
|
2018-08-08 19:55:33 +01:00
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-25 12:51:29 +01:00
|
|
|
|
2019-11-13 20:58:39 +00:00
|
|
|
nativeBuildInputs = [ cmake perl ];
|
2012-02-09 14:22:13 +00:00
|
|
|
propagatedBuildInputs = [ zlib ];
|
2007-11-11 16:19:00 +00:00
|
|
|
|
2018-08-08 19:55:33 +01:00
|
|
|
preCheck = ''
|
2019-11-13 20:58:39 +00:00
|
|
|
# regress/runtest is a generated file
|
2018-08-08 19:55:33 +01:00
|
|
|
patchShebangs regress
|
2016-04-27 01:46:36 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-03-06 21:39:46 +00:00
|
|
|
homepage = "https://www.nih.at/libzip";
|
2009-04-22 00:18:09 +01:00
|
|
|
description = "A C library for reading, creating and modifying zip archives";
|
2018-08-09 10:13:29 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2009-04-22 00:18:09 +01:00
|
|
|
};
|
2007-11-11 16:19:00 +00:00
|
|
|
}
|