Files
nixpkgs/pkgs/applications/misc/kiwix/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
967 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
libkiwix,
pkg-config,
qmake,
qtbase,
qtwebengine,
qtsvg,
qtimageformats,
wrapQtAppsHook,
aria2,
}:
stdenv.mkDerivation rec {
pname = "kiwix";
version = "2.4.1";
src = fetchFromGitHub {
owner = "kiwix";
repo = "kiwix-desktop";
rev = version;
hash = "sha256-B3RcYr/b8pZTJV35BWuqmWbq+C2WkkcwBR0oNaUXPRw=";
};
nativeBuildInputs = [
qmake
pkg-config
wrapQtAppsHook
];
buildInputs = [
libkiwix
qtbase
qtwebengine
qtsvg
qtimageformats
];
qtWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [ aria2 ]}"
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Offline reader for Web content";
mainProgram = "kiwix-desktop";
homepage = "https://kiwix.org";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ greg ];
};
}