2021-01-25 08:26:54 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, qmake, qtbase, qttools, poppler }:
|
2019-05-24 22:14:46 +01:00
|
|
|
|
2020-05-23 11:08:25 +01:00
|
|
|
mkDerivation rec {
|
2019-05-24 22:14:46 +01:00
|
|
|
pname = "lumina-pdf";
|
2020-05-21 17:26:49 +01:00
|
|
|
version = "1.6.0";
|
2019-05-24 22:14:46 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lumina-desktop";
|
|
|
|
repo = pname;
|
2020-05-21 17:26:49 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "08caj4nashp79fbvj94rabn0iaa1hymifqmb782x03nb2vkn38r6";
|
2019-05-24 22:14:46 +01:00
|
|
|
};
|
2021-01-15 13:21:58 +00:00
|
|
|
|
2019-05-24 22:14:46 +01: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-15 13:21:58 +00:00
|
|
|
"LRELEASE=${lib.getDev qttools}/bin/lrelease"
|
2019-05-24 22:14:46 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-24 22:14:46 +01:00
|
|
|
description = "PDF viewer for the Lumina Desktop";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/lumina-desktop/lumina-pdf";
|
2019-05-24 22:14:46 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|