Merge pull request #39592 from Mic92/masterpdfeditor
masterpdfeditor: use autoPatchelfHook
This commit is contained in:
commit
58e2f87003
@ -1,26 +1,19 @@
|
|||||||
{ stdenv, fetchurl, glibc, sane-backends, qtbase, qtsvg, libXext, libX11, libXdmcp, libXau, libxcb }:
|
{ stdenv, fetchurl, glibc, sane-backends, qtbase, qtsvg, libXext, libX11, libXdmcp, libXau, libxcb, autoPatchelfHook }:
|
||||||
let
|
let
|
||||||
version = "4.3.89";
|
version = "4.3.89";
|
||||||
in
|
in stdenv.mkDerivation {
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "masterpdfeditor-${version}";
|
name = "masterpdfeditor-${version}";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://get.code-industry.net/public/master-pdf-editor-${version}_qt5.amd64.tar.gz";
|
url = "http://get.code-industry.net/public/master-pdf-editor-${version}_qt5.amd64.tar.gz";
|
||||||
sha256 = "0k5bzlhqglskiiq86nmy18mnh5bf2w3mr9cq3pibrwn5pisxnxxc";
|
sha256 = "0k5bzlhqglskiiq86nmy18mnh5bf2w3mr9cq3pibrwn5pisxnxxc";
|
||||||
};
|
};
|
||||||
libPath = stdenv.lib.makeLibraryPath [
|
|
||||||
stdenv.cc.cc
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
glibc
|
|
||||||
sane-backends
|
buildInputs = [ sane-backends qtbase qtsvg ];
|
||||||
qtbase
|
|
||||||
qtsvg
|
|
||||||
libXext
|
|
||||||
libX11
|
|
||||||
libXdmcp
|
|
||||||
libXau
|
|
||||||
libxcb
|
|
||||||
];
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
p=$out/opt/masterpdfeditor
|
p=$out/opt/masterpdfeditor
|
||||||
mkdir -p $out/bin $p $out/share/applications $out/share/pixmaps
|
mkdir -p $out/bin $p $out/share/applications $out/share/pixmaps
|
||||||
@ -37,11 +30,8 @@
|
|||||||
cp -v -r stamps templates lang fonts $p
|
cp -v -r stamps templates lang fonts $p
|
||||||
|
|
||||||
install -D license.txt $out/share/$name/LICENSE
|
install -D license.txt $out/share/$name/LICENSE
|
||||||
|
|
||||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
||||||
--set-rpath $libPath \
|
|
||||||
$p/masterpdfeditor4
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Master PDF Editor";
|
description = "Master PDF Editor";
|
||||||
homepage = "https://code-industry.net/free-pdf-editor/";
|
homepage = "https://code-industry.net/free-pdf-editor/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user