depot/third_party/nixpkgs/pkgs/applications/misc/kiwix/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

47 lines
833 B
Nix

{ lib, mkDerivation, fetchFromGitHub
, callPackage
, pkg-config
, qmake
, qtbase
, qtwebengine
, qtsvg
, qtimageformats
, aria2
}:
mkDerivation rec {
pname = "kiwix";
version = "2.2.1";
src = fetchFromGitHub {
owner = pname;
repo = "${pname}-desktop";
rev = version;
sha256 = "sha256-ks2d/guMp5pb2tiwGxNp3htQVm65MsYvZ/6tNjGXNr8=";
};
nativeBuildInputs = [
qmake
pkg-config
];
buildInputs = [
qtbase
qtwebengine
qtsvg
qtimageformats
(callPackage ./lib.nix {})
];
qtWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [ aria2 ]}"
];
meta = with lib; {
description = "An offline reader for Web content";
homepage = "https://kiwix.org";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ ajs124 ];
};
}