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

56 lines
865 B
Nix
Raw Normal View History

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