My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/libraries/libzim/default.nix

48 lines
853 B

{ lib
, stdenv
, fetchFromGitHub
, icu
, meson
, ninja
, pkg-config
, xz
, zstd
}:
stdenv.mkDerivation rec {
pname = "libzim";
version = "7.2.0";
src = fetchFromGitHub {
owner = "openzim";
repo = pname;
rev = version;
sha256 = "sha256-H4YUAbH4X6oJIZyhI23LemngtOtKNrHHl3KSU1ilAmo=";
};
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 ];
};
}