lumina.lumina-pdf: init at 2019-04-27
This commit is contained in:
parent
c345f347d1
commit
e2c77cd9cb
@ -5,6 +5,7 @@ let
|
||||
|
||||
lumina = callPackage ./lumina { };
|
||||
lumina-calculator = callPackage ./lumina-calculator { };
|
||||
lumina-pdf = callPackage ./lumina-pdf { };
|
||||
|
||||
preRequisitePackages = [
|
||||
pkgs.fluxbox
|
||||
@ -17,6 +18,7 @@ let
|
||||
corePackages = [
|
||||
lumina
|
||||
lumina-calculator
|
||||
lumina-pdf
|
||||
];
|
||||
|
||||
};
|
||||
|
38
pkgs/desktops/lumina/lumina-pdf/default.nix
Normal file
38
pkgs/desktops/lumina/lumina-pdf/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ stdenv, fetchFromGitHub, qmake, qtbase, qttools, poppler }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lumina-pdf";
|
||||
version = "2019-04-27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lumina-desktop";
|
||||
repo = pname;
|
||||
rev = "645ed591ef91c3607d3ab87dd86f7acfd08b05c9";
|
||||
sha256 = "0gl943jb9c9rcgb5wksx3946hwlifghfd27r97skm9is8ih6k0vn";
|
||||
};
|
||||
|
||||
sourceRoot = "source/src-qt5";
|
||||
|
||||
nativeBuildInputs = [ qmake qttools ];
|
||||
|
||||
buildInputs = [ qtbase poppler ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i '1i\#include <memory>\' Renderer-poppler.cpp
|
||||
'';
|
||||
|
||||
qmakeFlags = [
|
||||
"CONFIG+=WITH_I18N"
|
||||
"LRELEASE=${stdenv.lib.getDev qttools}/bin/lrelease"
|
||||
];
|
||||
|
||||
enableParallelBuilding = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "PDF viewer for the Lumina Desktop";
|
||||
homepage = https://github.com/lumina-desktop/lumina-pdf;
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.romildo ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user