Skip to content

Commit

Permalink
masterpdfeditor: 5.1.12 -> 5.1.36
Browse files Browse the repository at this point in the history
(cherry picked from commit 899b766)
  • Loading branch information
Alexandre Peyroux authored and flokli committed Dec 25, 2018
1 parent 16d85e5 commit c5dee01
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkgs/applications/misc/masterpdfeditor/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
{ stdenv, fetchurl, sane-backends, qtbase, qtsvg, nss, autoPatchelfHook }:
{ stdenv, fetchurl, sane-backends, qtbase, qtsvg, nss, autoPatchelfHook, lib, makeWrapper }:

let
version = "5.1.12";
version = "5.1.36";

in stdenv.mkDerivation {
name = "masterpdfeditor-${version}";

src = fetchurl {
url = "https://code-industry.net/public/master-pdf-editor-${version}_qt5.amd64.tar.gz";
sha256 = "1i3pdrhnlj06phm36gs42s6b94pigcfb8wa5dhmplxn0dqp434hq";
sha256 = "10kydjg9qi6kvzn7ny5nk4xn2fsm47anq3al89hq97ppm9dlvh48";
};

nativeBuildInputs = [ autoPatchelfHook ];
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];

buildInputs = [ nss qtbase qtsvg sane-backends stdenv.cc.cc ];

dontStrip = true;

postInstall = ''
wrapProgram $out/bin/masterpdfeditor5 --prefix QT_PLUGIN_PATH : ${qtbase}/lib/qt-5.${lib.versions.minor qtbase.version}/plugins
'';

installPhase = ''
runHook preInstall
Expand Down

0 comments on commit c5dee01

Please sign in to comment.