kiwix-tools: init at 3.4.0

this provides the `kiwix-serve` tool asked for in
<https://github.com/NixOS/nixpkgs/issues/35009>,
but does not implement the systemd service requested.

package contents:
- bin/kiwix-manage
- bin/kiwix-search
- bin/kiwix-serve

tested by invoking `kiwix-serve` and connecting to it in a web browser:

```sh
nix build '.#kiwix-tools'
wget 'https://dumps.wikimedia.org/other/kiwix/zim/wikipedia/wikipedia_en_simple_all_mini_2022-11.zim'
./result/bin/kiwix-serve -p 1080 ./wikipedia_en_simple_all_mini_2022-11.zim
curl http://localhost:1080
```

colin f45dd595 fa9cc1b2

+45 -2
+1 -1
pkgs/applications/misc/kiwix/default.nix
··· 40 meta = with lib; { 41 description = "An offline reader for Web content"; 42 homepage = "https://kiwix.org"; 43 - license = licenses.gpl3; 44 platforms = platforms.linux; 45 maintainers = with maintainers; [ ajs124 ]; 46 };
··· 40 meta = with lib; { 41 description = "An offline reader for Web content"; 42 homepage = "https://kiwix.org"; 43 + license = licenses.gpl3Plus; 44 platforms = platforms.linux; 45 maintainers = with maintainers; [ ajs124 ]; 46 };
+1 -1
pkgs/applications/misc/kiwix/lib.nix
··· 55 meta = with lib; { 56 description = "Common code base for all Kiwix ports"; 57 homepage = "https://kiwix.org"; 58 - license = licenses.gpl3; 59 platforms = platforms.linux; 60 maintainers = with maintainers; [ colinsane ]; 61 };
··· 55 meta = with lib; { 56 description = "Common code base for all Kiwix ports"; 57 homepage = "https://kiwix.org"; 58 + license = licenses.gpl3Plus; 59 platforms = platforms.linux; 60 maintainers = with maintainers; [ colinsane ]; 61 };
+41
pkgs/applications/misc/kiwix/tools.nix
···
··· 1 + { lib 2 + , fetchFromGitHub 3 + , icu 4 + , libkiwix 5 + , meson 6 + , ninja 7 + , pkg-config 8 + , stdenv 9 + }: 10 + 11 + stdenv.mkDerivation rec { 12 + pname = "kiwix-tools"; 13 + version = "3.4.0"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "kiwix"; 17 + repo = "kiwix-tools"; 18 + rev = version; 19 + sha256 = "sha256-r3/aTH/YoDuYpKLPakP4toS3OtiRueTUjmR34rdmr+w="; 20 + }; 21 + 22 + nativeBuildInputs = [ 23 + meson 24 + ninja 25 + pkg-config 26 + ]; 27 + 28 + buildInputs = [ 29 + icu 30 + libkiwix 31 + ]; 32 + 33 + meta = with lib; { 34 + description = "Command line Kiwix tools: kiwix-serve, kiwix-manage, ..."; 35 + homepage = "https://kiwix.org"; 36 + license = licenses.gpl3Plus; 37 + platforms = platforms.linux; 38 + maintainers = with maintainers; [ colinsane ]; 39 + }; 40 + } 41 +
+2
pkgs/top-level/all-packages.nix
··· 29952 29953 kiwix = libsForQt5.callPackage ../applications/misc/kiwix { }; 29954 29955 klayout = libsForQt5.callPackage ../applications/misc/klayout { }; 29956 29957 klee = callPackage ../applications/science/logic/klee (with llvmPackages_11; {
··· 29952 29953 kiwix = libsForQt5.callPackage ../applications/misc/kiwix { }; 29954 29955 + kiwix-tools = callPackage ../applications/misc/kiwix/tools.nix { }; 29956 + 29957 klayout = libsForQt5.callPackage ../applications/misc/klayout { }; 29958 29959 klee = callPackage ../applications/science/logic/klee (with llvmPackages_11; {