depot/third_party/nixpkgs/pkgs/development/libraries/libzim/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

59 lines
1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, icu
, meson
, ninja
, pkg-config
, python3
, xapian
, xz
, zstd
}:
stdenv.mkDerivation rec {
pname = "libzim";
version = "8.1.0";
src = fetchFromGitHub {
owner = "openzim";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-ab7UUF+I0/xaGChvdjylEQRHLOjmtg/wk+/JEGehGLE=";
};
nativeBuildInputs = [
ninja
meson
pkg-config
python3
];
buildInputs = [
icu
zstd
];
propagatedBuildInputs = [
xapian
xz
];
postPatch = ''
patchShebangs scripts
'';
mesonFlags = [
# Tests are located at https://github.com/openzim/zim-testing-suite
# "...some tests need up to 16GB of memory..."
"-Dtest_data_dir=none"
];
meta = with lib; {
description = "Reference implementation of the ZIM specification";
homepage = "https://github.com/openzim/libzim";
changelog = "https://github.com/openzim/libzim/releases/tag/${version}";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fab ];
};
}