9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
31 lines
783 B
Nix
31 lines
783 B
Nix
{ lib, stdenv, fetchFromGitHub
|
|
, meson, ninja, pkg-config
|
|
, docopt_cpp, file, gumbo, mustache-hpp, zimlib, zlib
|
|
, gtest
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zim-tools";
|
|
version = "3.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openzim";
|
|
repo = "zim-tools";
|
|
rev = version;
|
|
sha256 = "sha256-E4E2ETuhlzBZKXMy2hNA66Vq1z2VzomgCsQp2y00XHQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
buildInputs = [ docopt_cpp file gumbo mustache-hpp zimlib zlib ];
|
|
|
|
nativeCheckInputs = [ gtest ];
|
|
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;
|
|
};
|
|
}
|