diff options
author | José Romildo Malaquias <malaquias@gmail.com> | 2019-05-24 18:14:46 -0300 |
---|---|---|
committer | José Romildo Malaquias <malaquias@gmail.com> | 2019-05-24 18:14:46 -0300 |
commit | e2c77cd9cb383afa281694974b0c34aa3858a742 (patch) | |
tree | 24d42587d131a7f3d46235262ea9022f1143d3b4 /pkgs/desktops/lumina | |
parent | c345f347d146f698698bac2501f64c5ca541c60a (diff) |
lumina.lumina-pdf: init at 2019-04-27
Diffstat (limited to 'pkgs/desktops/lumina')
-rw-r--r-- | pkgs/desktops/lumina/default.nix | 2 | ||||
-rw-r--r-- | pkgs/desktops/lumina/lumina-pdf/default.nix | 38 |
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/desktops/lumina/default.nix b/pkgs/desktops/lumina/default.nix index 9bdf221c96de3..10e75eea38f02 100644 --- a/pkgs/desktops/lumina/default.nix +++ b/pkgs/desktops/lumina/default.nix @@ -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 ]; }; diff --git a/pkgs/desktops/lumina/lumina-pdf/default.nix b/pkgs/desktops/lumina/lumina-pdf/default.nix new file mode 100644 index 0000000000000..62d59d18cc551 --- /dev/null +++ b/pkgs/desktops/lumina/lumina-pdf/default.nix @@ -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 ]; + }; +} |