2022-06-26 10:26:21 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
|
|
|
, meson, ninja, pkg-config
|
|
|
|
, docopt_cpp, file, gumbo, mustache-hpp, zimlib, zlib
|
|
|
|
, gtest
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zim-tools";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "3.4.0";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openzim";
|
|
|
|
repo = "zim-tools";
|
|
|
|
rev = version;
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-A1A0Ri2OwPyqpx0f5CPJL3zAwo2I/AiRKpmk3r4DeTc=";
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
|
|
buildInputs = [ docopt_cpp file gumbo mustache-hpp zimlib zlib ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ gtest ];
|
2022-06-26 10:26:21 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Various ZIM command line tools";
|
|
|
|
homepage = "https://github.com/openzim/zim-tools";
|
|
|
|
maintainers = with lib.maintainers; [ robbinch ];
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|