2021-02-05 17:12:51 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, qmake, qtbase, qttools, poppler }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "lumina-pdf";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "1.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lumina-desktop";
|
|
|
|
repo = pname;
|
2020-05-29 06:06:01 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "08caj4nashp79fbvj94rabn0iaa1hymifqmb782x03nb2vkn38r6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-01-17 00:15:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
sourceRoot = "source/src-qt5";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase poppler ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '1i\#include <memory>\' Renderer-poppler.cpp
|
|
|
|
'';
|
|
|
|
|
|
|
|
qmakeFlags = [
|
|
|
|
"CONFIG+=WITH_I18N"
|
2021-01-17 00:15:33 +00:00
|
|
|
"LRELEASE=${lib.getDev qttools}/bin/lrelease"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "PDF viewer for the Lumina Desktop";
|
|
|
|
homepage = "https://github.com/lumina-desktop/lumina-pdf";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = teams.lumina.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|