Merge pull request #206254 from uninsane/pr/kiwix-2.3.1

kiwix-tools: init at 3.4.0

authored by ajs124 and committed by GitHub 36a8e63f dd554216

+76 -13
+5 -5
pkgs/applications/misc/kiwix/default.nix
··· 1 1 { lib, mkDerivation, fetchFromGitHub 2 - , callPackage 2 + , libkiwix 3 3 , pkg-config 4 4 , qmake 5 5 , qtbase ··· 11 11 12 12 mkDerivation rec { 13 13 pname = "kiwix"; 14 - version = "2.2.1"; 14 + version = "2.3.1"; 15 15 16 16 src = fetchFromGitHub { 17 17 owner = pname; 18 18 repo = "${pname}-desktop"; 19 19 rev = version; 20 - sha256 = "sha256-ks2d/guMp5pb2tiwGxNp3htQVm65MsYvZ/6tNjGXNr8="; 20 + sha256 = "sha256-ghx4pW6IkWPzZXk0TtMGeQZIzm9HEN3mR4XQFJ1xHDo="; 21 21 }; 22 22 23 23 nativeBuildInputs = [ ··· 26 26 ]; 27 27 28 28 buildInputs = [ 29 + libkiwix 29 30 qtbase 30 31 qtwebengine 31 32 qtsvg 32 33 qtimageformats 33 - (callPackage ./lib.nix {}) 34 34 ]; 35 35 36 36 qtWrapperArgs = [ ··· 40 40 meta = with lib; { 41 41 description = "An offline reader for Web content"; 42 42 homepage = "https://kiwix.org"; 43 - license = licenses.gpl3; 43 + license = licenses.gpl3Plus; 44 44 platforms = platforms.linux; 45 45 maintainers = with maintainers; [ ajs124 ]; 46 46 };
+14 -6
pkgs/applications/misc/kiwix/lib.nix
··· 1 - { stdenv, fetchFromGitHub 1 + { lib, stdenv, fetchFromGitHub 2 2 , meson, ninja, pkg-config 3 3 , python3 4 4 , curl 5 5 , icu 6 + , libzim 6 7 , pugixml 7 - , zimlib 8 8 , zlib 9 9 , libmicrohttpd 10 10 , mustache-hpp ··· 12 12 }: 13 13 14 14 stdenv.mkDerivation rec { 15 - pname = "kiwix-lib"; 16 - version = "10.1.1"; 15 + pname = "libkiwix"; 16 + version = "12.0.0"; 17 17 18 18 src = fetchFromGitHub { 19 19 owner = "kiwix"; 20 20 repo = pname; 21 21 rev = version; 22 - sha256 = "sha256-ECvdraN1J5XJQLeZDngxO5I7frwZ8+W8tFpbB7o8UeM="; 22 + sha256 = "sha256-4FxLxJxVhqbeNqX4vorHkROUuRURvE6AXlteIZCEBtc="; 23 23 }; 24 24 25 25 nativeBuildInputs = [ ··· 38 38 propagatedBuildInputs = [ 39 39 curl 40 40 libmicrohttpd 41 + libzim 41 42 pugixml 42 - zimlib 43 43 ]; 44 44 45 45 checkInputs = [ ··· 51 51 postPatch = '' 52 52 patchShebangs scripts 53 53 ''; 54 + 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 + }; 54 62 }
+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 +
+12 -2
pkgs/development/libraries/libzim/default.nix
··· 5 5 , meson 6 6 , ninja 7 7 , pkg-config 8 + , python3 9 + , xapian 8 10 , xz 9 11 , zstd 10 12 }: ··· 24 26 ninja 25 27 meson 26 28 pkg-config 29 + python3 27 30 ]; 28 31 29 32 buildInputs = [ 30 33 icu 31 - xz 32 34 zstd 33 35 ]; 34 36 37 + propagatedBuildInputs = [ 38 + xapian 39 + xz 40 + ]; 41 + 42 + postPatch = '' 43 + patchShebangs scripts 44 + ''; 45 + 35 46 mesonFlags = [ 36 47 # Tests are located at https://github.com/openzim/zim-testing-suite 37 48 # "...some tests need up to 16GB of memory..." 38 49 "-Dtest_data_dir=none" 39 - "-Dwith_xapian=false" 40 50 ]; 41 51 42 52 meta = with lib; {
+4
pkgs/top-level/all-packages.nix
··· 30210 30210 30211 30211 kiwix = libsForQt5.callPackage ../applications/misc/kiwix { }; 30212 30212 30213 + kiwix-tools = callPackage ../applications/misc/kiwix/tools.nix { }; 30214 + 30213 30215 klayout = libsForQt5.callPackage ../applications/misc/klayout { }; 30214 30216 30215 30217 klee = callPackage ../applications/science/logic/klee (with llvmPackages_11; { ··· 30429 30431 lens = callPackage ../applications/networking/cluster/lens { }; 30430 30432 30431 30433 leo-editor = libsForQt5.callPackage ../applications/editors/leo-editor { }; 30434 + 30435 + libkiwix = callPackage ../applications/misc/kiwix/lib.nix { }; 30432 30436 30433 30437 libowfat = callPackage ../development/libraries/libowfat { }; 30434 30438