2021-03-28 00:30:12 +01:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub
|
|
|
|
, callPackage
|
|
|
|
, pkg-config
|
|
|
|
, makeWrapper
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, qtwebengine
|
|
|
|
, qtsvg
|
|
|
|
, qtimageformats
|
|
|
|
, aria2
|
2015-09-22 02:11:53 +02:00
|
|
|
}:
|
|
|
|
|
2021-03-28 00:30:12 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "kiwix";
|
2021-03-28 00:30:12 +01:00
|
|
|
version = "2.0.5";
|
2015-09-22 02:11:53 +02:00
|
|
|
|
2021-03-28 00:30:12 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "${pname}-desktop";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "12v43bcg4g8fcp02y2srsfdvcb7dpl4pxb9z7a235006s0kfv8yn";
|
2015-09-22 02:11:53 +02:00
|
|
|
};
|
|
|
|
|
2021-03-28 00:30:12 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
pkg-config
|
2015-09-22 02:11:53 +02:00
|
|
|
];
|
|
|
|
|
2021-03-28 00:30:12 +01:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtwebengine
|
|
|
|
qtsvg
|
|
|
|
qtimageformats
|
|
|
|
(callPackage ./lib.nix {})
|
2016-09-03 15:45:00 +02:00
|
|
|
];
|
2015-09-22 02:11:53 +02:00
|
|
|
|
2021-03-28 00:30:12 +01:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix PATH : ${lib.makeBinPath [ aria2 ]}"
|
|
|
|
];
|
2015-09-22 02:11:53 +02:00
|
|
|
|
2021-03-28 00:30:12 +01:00
|
|
|
meta = with lib; {
|
2015-09-22 02:11:53 +02:00
|
|
|
description = "An offline reader for Web content";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://kiwix.org";
|
2015-09-22 02:11:53 +02:00
|
|
|
license = licenses.gpl3;
|
2017-03-06 22:21:28 +01:00
|
|
|
platforms = platforms.linux;
|
2021-03-28 00:30:12 +01:00
|
|
|
maintainers = with maintainers; [ ajs124 ];
|
2015-09-22 02:11:53 +02:00
|
|
|
};
|
|
|
|
}
|