nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 docopt_cpp,
4 fetchFromGitHub,
5 gitUpdater,
6 icu,
7 libkiwix,
8 meson,
9 ninja,
10 pkg-config,
11 stdenv,
12}:
13
14stdenv.mkDerivation (finalAttrs: {
15 pname = "kiwix-tools";
16 version = "3.7.0-unstable-2024-12-21";
17
18 src = fetchFromGitHub {
19 owner = "kiwix";
20 repo = "kiwix-tools";
21 rev = "43b00419dd3f33eb644e1d83c2e802fc200b2de7";
22 hash = "sha256-Rctb6ZPTXjgSrLRB5VK4CEqYHuEPB7a+SQaNi47cxv0=";
23 };
24
25 nativeBuildInputs = [
26 meson
27 ninja
28 pkg-config
29 ];
30
31 buildInputs = [
32 docopt_cpp
33 icu
34 libkiwix
35 ];
36
37 passthru.updateScript = gitUpdater { };
38
39 meta = with lib; {
40 description = "Command line Kiwix tools";
41 homepage = "https://kiwix.org";
42 changelog = "https://github.com/kiwix/kiwix-tools/releases/tag/${finalAttrs.version}";
43 license = licenses.gpl3Plus;
44 platforms = platforms.linux;
45 maintainers = with maintainers; [ colinsane ];
46 };
47})