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