2021-04-05 15:23:46 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub
|
2023-01-20 10:41:00 +00:00
|
|
|
, libkiwix
|
2021-04-05 15:23:46 +00:00
|
|
|
, pkg-config
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, qtwebengine
|
|
|
|
, qtsvg
|
|
|
|
, qtimageformats
|
|
|
|
, aria2
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "kiwix";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "2.3.1-unstable-2024-02-20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-02-29 20:09:43 +00:00
|
|
|
owner = "kiwix";
|
|
|
|
repo = "kiwix-desktop";
|
|
|
|
rev = "17ac566b07814aefb1decf108e4ba6d7ad9ef7bc";
|
|
|
|
hash = "sha256-BZzFnQE8/dyZkpY0X3zZ6yC6yLZ002Q/RoDzEhSOa/g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
libkiwix
|
2021-04-05 15:23:46 +00:00
|
|
|
qtbase
|
|
|
|
qtwebengine
|
|
|
|
qtsvg
|
|
|
|
qtimageformats
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix PATH : ${lib.makeBinPath [ aria2 ]}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Offline reader for Web content";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "kiwix-desktop";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://kiwix.org";
|
2023-01-20 10:41:00 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|