nixpkgs/pkgs/applications/misc/kiwix/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
892 B
Nix
Raw Normal View History

2021-03-27 23:30:12 +00:00
{ lib, mkDerivation, fetchFromGitHub
, libkiwix
2021-03-27 23:30:12 +00:00
, pkg-config
, qmake
, qtbase
, qtwebengine
, qtsvg
, qtimageformats
, aria2
}:
2024-02-26 05:34:53 +00:00
mkDerivation {
pname = "kiwix";
2024-02-26 05:34:53 +00:00
version = "2.3.1-unstable-2024-02-20";
2021-03-27 23:30:12 +00:00
src = fetchFromGitHub {
2024-02-26 05:34:53 +00:00
owner = "kiwix";
repo = "kiwix-desktop";
rev = "17ac566b07814aefb1decf108e4ba6d7ad9ef7bc";
hash = "sha256-BZzFnQE8/dyZkpY0X3zZ6yC6yLZ002Q/RoDzEhSOa/g=";
};
2021-03-27 23:30:12 +00:00
nativeBuildInputs = [
qmake
pkg-config
];
2021-03-27 23:30:12 +00:00
buildInputs = [
libkiwix
2021-03-27 23:30:12 +00:00
qtbase
qtwebengine
qtsvg
qtimageformats
];
2021-03-27 23:30:12 +00:00
qtWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [ aria2 ]}"
];
2021-03-27 23:30:12 +00:00
meta = with lib; {
description = "An offline reader for Web content";
mainProgram = "kiwix-desktop";
homepage = "https://kiwix.org";
license = licenses.gpl3Plus;
2017-03-06 21:21:28 +00:00
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}