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
847 B
Nix
Raw Normal View History

2021-03-27 23:30:12 +00:00
{ lib, mkDerivation, fetchFromGitHub
, callPackage
, pkg-config
, makeWrapper
, qmake
, qtbase
, qtwebengine
, qtsvg
, qtimageformats
, aria2
}:
2021-03-27 23:30:12 +00:00
mkDerivation rec {
pname = "kiwix";
2022-06-10 15:21:47 +01:00
version = "2.2.1";
2021-03-27 23:30:12 +00:00
src = fetchFromGitHub {
owner = pname;
repo = "${pname}-desktop";
rev = version;
2022-06-10 15:21:47 +01:00
sha256 = "sha256-ks2d/guMp5pb2tiwGxNp3htQVm65MsYvZ/6tNjGXNr8=";
};
2021-03-27 23:30:12 +00:00
nativeBuildInputs = [
qmake
pkg-config
];
2021-03-27 23:30:12 +00:00
buildInputs = [
qtbase
qtwebengine
qtsvg
qtimageformats
(callPackage ./lib.nix {})
];
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";
homepage = "https://kiwix.org";
license = licenses.gpl3;
2017-03-06 21:21:28 +00:00
platforms = platforms.linux;
2021-03-27 23:30:12 +00:00
maintainers = with maintainers; [ ajs124 ];
};
}