2022-01-03 16:56:52 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, icu
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, xz
|
|
|
|
, zstd
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libzim";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "8.0.0";
|
2022-01-03 16:56:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openzim";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-FSotc2hkWvkYEdZ3HI3JLzjtKFaWOc1Bx6r0WyeS/Kg=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
ninja
|
|
|
|
meson
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
icu
|
|
|
|
xz
|
|
|
|
zstd
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
# Tests are located at https://github.com/openzim/zim-testing-suite
|
|
|
|
# "...some tests need up to 16GB of memory..."
|
|
|
|
"-Dtest_data_dir=none"
|
|
|
|
"-Dwith_xapian=false"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Reference implementation of the ZIM specification";
|
|
|
|
homepage = "https://github.com/openzim/libzim";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|