2021-03-27 23:30:12 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub
|
|
|
|
, callPackage
|
|
|
|
, pkg-config
|
|
|
|
, makeWrapper
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, qtwebengine
|
|
|
|
, qtsvg
|
|
|
|
, qtimageformats
|
|
|
|
, aria2
|
2015-09-22 01:11:53 +01:00
|
|
|
}:
|
|
|
|
|
2021-03-27 23:30:12 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "kiwix";
|
2022-06-10 15:21:47 +01:00
|
|
|
version = "2.2.1";
|
2015-09-22 01:11:53 +01:00
|
|
|
|
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=";
|
2015-09-22 01:11:53 +01:00
|
|
|
};
|
|
|
|
|
2021-03-27 23:30:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
pkg-config
|
2015-09-22 01:11:53 +01:00
|
|
|
];
|
|
|
|
|
2021-03-27 23:30:12 +00:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtwebengine
|
|
|
|
qtsvg
|
|
|
|
qtimageformats
|
|
|
|
(callPackage ./lib.nix {})
|
2016-09-03 14:45:00 +01:00
|
|
|
];
|
2015-09-22 01:11:53 +01:00
|
|
|
|
2021-03-27 23:30:12 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix PATH : ${lib.makeBinPath [ aria2 ]}"
|
|
|
|
];
|
2015-09-22 01:11:53 +01:00
|
|
|
|
2021-03-27 23:30:12 +00:00
|
|
|
meta = with lib; {
|
2015-09-22 01:11:53 +01:00
|
|
|
description = "An offline reader for Web content";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://kiwix.org";
|
2015-09-22 01:11:53 +01:00
|
|
|
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 ];
|
2015-09-22 01:11:53 +01:00
|
|
|
};
|
|
|
|
}
|