calibre: fix RPATH problems

It took quite some discussions to find a good solution:
close #26201, close #26209.
(Authorship assigned to the author of the idea.)
This commit is contained in:
Guillaume Maudoux 2017-06-05 07:10:49 +02:00 committed by Vladimír Čunát
parent 2e08839cbe
commit e6550cb5c1
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -62,6 +62,8 @@ stdenv.mkDerivation rec {
]);
installPhase = ''
runHook preInstall
export HOME=$TMPDIR/fakehome
export POPPLER_INC_DIR=${poppler_utils.dev}/include/poppler
export POPPLER_LIB_DIR=${poppler_utils.out}/lib
@ -92,6 +94,8 @@ stdenv.mkDerivation rec {
for entry in $out/share/applications/*.desktop; do
substituteAllInPlace $entry
done
runHook postInstall
'';
calibreDesktopItem = makeDesktopItem {