Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
71 lines
1.6 KiB
Nix
71 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
perl,
|
|
pkg-config,
|
|
python3,
|
|
xmlto,
|
|
zip,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zziplib";
|
|
version = "0.13.80";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gdraheim";
|
|
repo = "zziplib";
|
|
tag = "v${version}";
|
|
hash = "sha256-vvPcQBRk1iIPNk5qI7N0Nv9JWndVfFH6oGxyr9ZIt0g=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
perl
|
|
pkg-config
|
|
python3
|
|
xmlto
|
|
zip
|
|
];
|
|
|
|
buildInputs = [
|
|
zlib
|
|
];
|
|
|
|
# test/zziptests.py requires network access
|
|
# (https://github.com/gdraheim/zziplib/issues/24)
|
|
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"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/gdraheim/zziplib";
|
|
changelog = "https://github.com/gdraheim/zziplib/blob/v${version}/ChangeLog";
|
|
description = "Library to extract data from files archived in a zip file";
|
|
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.
|
|
'';
|
|
license = with lib.licenses; [
|
|
lgpl2Plus
|
|
mpl11
|
|
];
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|