2021-03-28 00:30:12 +01:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub
|
2022-12-16 01:05:53 +01:00
|
|
|
, libkiwix
|
2021-03-28 00:30:12 +01:00
|
|
|
, pkg-config
|
|
|
|
, 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";
|
2022-12-15 14:51:48 +01:00
|
|
|
version = "2.3.1";
|
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;
|
2022-12-15 14:51:48 +01:00
|
|
|
sha256 = "sha256-ghx4pW6IkWPzZXk0TtMGeQZIzm9HEN3mR4XQFJ1xHDo=";
|
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 = [
|
2022-12-16 01:05:53 +01:00
|
|
|
libkiwix
|
2021-03-28 00:30:12 +01:00
|
|
|
qtbase
|
|
|
|
qtwebengine
|
|
|
|
qtsvg
|
|
|
|
qtimageformats
|
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";
|
2022-12-16 01:19:54 +01:00
|
|
|
license = licenses.gpl3Plus;
|
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
|
|
|
};
|
|
|
|
}
|