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

65 lines
1.5 KiB
Nix
Raw Normal View History

2021-03-23 17:08:03 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, perl
, pkg-config
, python3
, xmlto
2021-03-23 17:08:03 +00:00
, zip
, zlib
}:
stdenv.mkDerivation rec {
pname = "zziplib";
2021-03-23 17:08:03 +00:00
version = "0.13.72";
src = fetchFromGitHub {
owner = "gdraheim";
2021-03-23 17:08:03 +00:00
repo = pname;
rev = "v${version}";
2021-03-23 17:08:03 +00:00
hash = "sha256-Ht3fBgdrTm4mCi5uhgQPNtpGzADoRVOpSuGPsIS6y0Q=";
};
nativeBuildInputs = [
2021-03-23 17:08:03 +00:00
cmake
perl
pkg-config
python3
xmlto
2021-03-23 17:08:03 +00:00
zip
];
buildInputs = [
zlib
];
2021-03-23 17:08:03 +00:00
# test/zziptests.py requires network access
# (https://github.com/gdraheim/zziplib/issues/24)
2021-03-23 17:08:03 +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"
];
meta = with lib; {
2021-03-23 17:08:03 +00:00
homepage = "https://github.com/gdraheim/zziplib";
description = "Library to extract data from files archived in a zip file";
longDescription = ''
2021-03-23 17:08:03 +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.
'';
license = with licenses; [ lgpl2Plus mpl11 ];
2021-03-23 17:08:03 +00:00
maintainers = with maintainers; [ AndersonTorres ];
platforms = python3.meta.platforms;
};
}