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

56 lines
866 B
Nix
Raw Normal View History

2021-03-27 23:28:44 +00:00
{ lib, stdenv, fetchFromGitHub
, meson, ninja, pkg-config
, python3
, icu
, libuuid
, xapian
, xz
, zstd
, gtest
}:
2017-03-07 12:09:33 +00:00
stdenv.mkDerivation rec {
pname = "zimlib";
2021-03-27 23:28:44 +00:00
version = "6.3.0";
2017-03-07 12:09:33 +00:00
2021-03-27 23:28:44 +00:00
src = fetchFromGitHub {
owner = "openzim";
repo = "libzim";
rev = version;
sha256 = "0iy0f1clhihq277x218ccx3mszgpr3h9l0by48b9ykr115nffw3s";
};
2021-03-27 23:28:44 +00:00
nativeBuildInputs = [
meson
pkg-config
ninja
python3
];
2017-03-07 12:09:33 +00:00
2021-03-27 23:28:44 +00:00
propagatedBuildInputs = [
icu
libuuid
xapian
xz
zstd
];
postPatch = ''
patchShebangs scripts
'';
checkInputs = [
gtest
];
doCheck = true;
2017-03-07 12:09:33 +00:00
meta = with lib; {
2017-03-07 12:09:33 +00:00
description = "Library for reading and writing ZIM files";
homepage = "https://www.openzim.org/wiki/Zimlib";
2017-03-07 12:09:33 +00:00
license = licenses.gpl2;
2021-03-27 23:28:44 +00:00
maintainers = with maintainers; [ ajs124 ];
2017-03-07 12:09:33 +00:00
platforms = platforms.linux;
};
}