2020-04-13 13:44:04 +01:00
|
|
|
{ stdenv
|
2020-06-21 23:24:49 +01:00
|
|
|
, perl
|
2020-04-13 13:44:04 +01:00
|
|
|
, pkg-config
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, zip
|
|
|
|
, unzip
|
|
|
|
, python3
|
|
|
|
, xmlto
|
|
|
|
, zlib
|
|
|
|
}:
|
2009-07-31 11:24:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "zziplib";
|
2020-04-13 13:44:04 +01:00
|
|
|
version = "0.13.71";
|
2009-07-31 11:24:02 +01:00
|
|
|
|
2020-04-13 13:44:04 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gdraheim";
|
|
|
|
repo = "zziplib";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "P+7D57sc2oIABhk3k96aRILpGnsND5SLXHh2lqr9O4E=";
|
2009-07-31 11:24:02 +01:00
|
|
|
};
|
|
|
|
|
2019-06-16 11:14:08 +01:00
|
|
|
patches = [
|
2020-04-13 13:44:04 +01:00
|
|
|
# Install man pages
|
2019-10-07 02:29:38 +01:00
|
|
|
(fetchpatch {
|
2020-04-13 13:44:04 +01:00
|
|
|
url = "https://github.com/gdraheim/zziplib/commit/5583ccc7a247ee27556ede344e93d3ac1dc72e9b.patch";
|
|
|
|
sha256 = "wVExEZN8Ml1/3GicB0ZYsLVS3KJ8BSz8i4Gu46naz1Y=";
|
|
|
|
excludes = [ "GNUmakefile" ];
|
2019-10-07 02:29:38 +01:00
|
|
|
})
|
2020-04-13 13:44:04 +01:00
|
|
|
|
|
|
|
# Fix man page formatting
|
2019-10-07 02:29:38 +01:00
|
|
|
(fetchpatch {
|
2020-04-13 13:44:04 +01:00
|
|
|
url = "https://github.com/gdraheim/zziplib/commit/22ed64f13dc239f86664c60496261f544bce1088.patch";
|
|
|
|
sha256 = "ScFVWLc4LQPqkcHn9HK/VkLula4b5HzuYl0b5vi4Ikc=";
|
2019-10-07 02:29:38 +01:00
|
|
|
})
|
2019-06-16 11:14:08 +01:00
|
|
|
];
|
2012-02-26 21:45:08 +00:00
|
|
|
|
2020-04-13 13:44:04 +01:00
|
|
|
nativeBuildInputs = [
|
2020-06-21 23:24:49 +01:00
|
|
|
perl
|
2020-04-13 13:44:04 +01:00
|
|
|
pkg-config
|
|
|
|
zip
|
|
|
|
python3
|
|
|
|
xmlto
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
|
2018-02-23 20:11:05 +00:00
|
|
|
# tests are broken (https://github.com/gdraheim/zziplib/issues/20),
|
|
|
|
# and test/zziptests.py requires network access
|
|
|
|
# (https://github.com/gdraheim/zziplib/issues/24)
|
|
|
|
doCheck = false;
|
2020-04-13 13:44:04 +01:00
|
|
|
checkTarget = "check";
|
2009-07-31 11:24:02 +01:00
|
|
|
|
2015-05-27 20:56:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-06-23 12:04:06 +01:00
|
|
|
description = "Library to extract data from files archived in a zip file";
|
2009-07-31 11:24:02 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
The zziplib library is intentionally lightweight, it offers the ability
|
|
|
|
to easily extract data from files archived in a single zip
|
|
|
|
file. Applications can bundle files into a single zip archive and
|
|
|
|
access them. The implementation is based only on the (free) subset of
|
|
|
|
compression with the zlib algorithm which is actually used by the
|
|
|
|
zip/unzip tools.
|
|
|
|
'';
|
|
|
|
|
2015-05-27 20:56:04 +01:00
|
|
|
license = with licenses; [ lgpl2Plus mpl11 ];
|
2009-07-31 11:24:02 +01:00
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://zziplib.sourceforge.net/";
|
2009-07-31 11:24:02 +01:00
|
|
|
|
2013-08-16 22:44:33 +01:00
|
|
|
maintainers = [ ];
|
2020-04-13 13:44:04 +01:00
|
|
|
platforms = python3.meta.platforms;
|
2009-07-31 11:24:02 +01:00
|
|
|
};
|
|
|
|
}
|