2021-03-28 00:28:44 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
|
|
|
, meson, ninja, pkg-config
|
|
|
|
, python3
|
|
|
|
, icu
|
|
|
|
, libuuid
|
|
|
|
, xapian
|
|
|
|
, xz
|
|
|
|
, zstd
|
|
|
|
, gtest
|
|
|
|
}:
|
2015-09-02 01:45:44 +02:00
|
|
|
|
2017-03-07 13:09:33 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
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=";
|
2015-09-02 01:45:44 +02:00
|
|
|
};
|
|
|
|
|
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
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2017-03-07 13:09:33 +01:00
|
|
|
description = "Library for reading and writing ZIM files";
|
2020-04-01 03:11:51 +02:00
|
|
|
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;
|
2015-09-02 01:45:44 +02:00
|
|
|
};
|
|
|
|
}
|