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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
865 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-06-16 13:01:42 +01:00
version = "6.3.2";
2017-03-07 12:09:33 +00:00
2021-03-27 23:28:44 +00:00
src = fetchFromGitHub {
owner = "openzim";
repo = "libzim";
rev = version;
2021-06-16 13:01:42 +01:00
sha256 = "sha256-xlYu74akK9WFy86hcQe7zp11TImwl8llgDIZBRgmbAI=";
};
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;
};
}