2021-03-20 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-06-15 15:56:04 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
2021-03-20 04:20:00 +00:00
|
|
|
, cmake
|
|
|
|
, perl
|
|
|
|
, pkg-config
|
2020-06-15 15:56:04 +00:00
|
|
|
, python3
|
|
|
|
, xmlto
|
2021-03-20 04:20:00 +00:00
|
|
|
, zip
|
2020-06-15 15:56:04 +00:00
|
|
|
, zlib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zziplib";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.13.74";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gdraheim";
|
2021-03-20 04:20:00 +00:00
|
|
|
repo = pname;
|
2020-06-15 15:56:04 +00:00
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-MjqGHzb+dsAq2PrcBhU3sv4eMX3afkgFWUbhDp+5o/s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
nativeBuildInputs = [
|
2021-03-20 04:20:00 +00:00
|
|
|
cmake
|
2020-07-18 16:06:22 +00:00
|
|
|
perl
|
2020-06-15 15:56:04 +00:00
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
xmlto
|
2021-03-20 04:20:00 +00:00
|
|
|
zip
|
2020-06-15 15:56:04 +00:00
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
# test/zziptests.py requires network access
|
2020-04-24 23:36:52 +00:00
|
|
|
# (https://github.com/gdraheim/zziplib/issues/24)
|
2021-03-20 04:20:00 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DZZIP_TESTCVE=OFF"
|
|
|
|
"-DBUILD_SHARED_LIBS=True"
|
|
|
|
"-DBUILD_STATIC_LIBS=False"
|
|
|
|
"-DBUILD_TESTS=OFF"
|
|
|
|
"-DMSVC_STATIC_RUNTIME=OFF"
|
|
|
|
"-DZZIPSDL=OFF"
|
|
|
|
"-DZZIPTEST=OFF"
|
|
|
|
"-DZZIPWRAP=OFF"
|
|
|
|
"-DBUILDTESTS=OFF"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-03-20 04:20:00 +00:00
|
|
|
homepage = "https://github.com/gdraheim/zziplib";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library to extract data from files archived in a zip file";
|
|
|
|
longDescription = ''
|
2021-03-20 04:20:00 +00:00
|
|
|
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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
license = with licenses; [ lgpl2Plus mpl11 ];
|
2021-03-20 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2023-02-02 18:25:31 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|