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

49 lines
848 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";
2021-03-27 23:30:12 +00:00
version = "2.0.5";
2021-03-27 23:30:12 +00:00
src = fetchFromGitHub {
owner = pname;
repo = "${pname}-desktop";
rev = version;
sha256 = "12v43bcg4g8fcp02y2srsfdvcb7dpl4pxb9z7a235006s0kfv8yn";
};
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 ];
};
}