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