nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 54 lines 929 B view raw
1{ 2 lib, 3 mkDerivation, 4 fetchFromGitHub, 5 nix-update-script, 6 libkiwix, 7 pkg-config, 8 qmake, 9 qtbase, 10 qtwebengine, 11 qtsvg, 12 qtimageformats, 13 aria2, 14}: 15 16mkDerivation rec { 17 pname = "kiwix"; 18 version = "2.4.1"; 19 20 src = fetchFromGitHub { 21 owner = "kiwix"; 22 repo = "kiwix-desktop"; 23 rev = version; 24 hash = "sha256-B3RcYr/b8pZTJV35BWuqmWbq+C2WkkcwBR0oNaUXPRw="; 25 }; 26 27 nativeBuildInputs = [ 28 qmake 29 pkg-config 30 ]; 31 32 buildInputs = [ 33 libkiwix 34 qtbase 35 qtwebengine 36 qtsvg 37 qtimageformats 38 ]; 39 40 qtWrapperArgs = [ 41 "--prefix PATH : ${lib.makeBinPath [ aria2 ]}" 42 ]; 43 44 passthru.updateScript = nix-update-script { }; 45 46 meta = with lib; { 47 description = "Offline reader for Web content"; 48 mainProgram = "kiwix-desktop"; 49 homepage = "https://kiwix.org"; 50 license = licenses.gpl3Plus; 51 platforms = platforms.linux; 52 maintainers = with maintainers; [ greg ]; 53 }; 54}