2495e3f88b
GitOrigin-RevId: 78cd22c1b8604de423546cd49bfe264b786eca13
48 lines
853 B
Nix
48 lines
853 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, icu
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, xz
|
|
, zstd
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libzim";
|
|
version = "7.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openzim";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-OQVGopAInAI7KCEVr3BxaKD6np2QcFCaDjgNWjT202U=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|