1 { lib, mkDerivation, fetchFromGitHub, qmake, qtbase, qttools, poppler }:
7 src = fetchFromGitHub {
8 owner = "lumina-desktop";
11 sha256 = "08caj4nashp79fbvj94rabn0iaa1hymifqmb782x03nb2vkn38r6";
14 sourceRoot = "${src.name}/src-qt5";
16 nativeBuildInputs = [ qmake qttools ];
18 buildInputs = [ qtbase poppler ];
21 sed -i '1i\#include <memory>\' Renderer-poppler.cpp
26 "LRELEASE=${lib.getDev qttools}/bin/lrelease"
29 enableParallelBuilding = false;
32 description = "PDF viewer for the Lumina Desktop";
33 mainProgram = "lumina-pdf";
34 homepage = "https://github.com/lumina-desktop/lumina-pdf";
35 license = licenses.bsd3;
36 platforms = platforms.unix;
37 maintainers = teams.lumina.members;