From e6550cb5c19599d7016bab488f94e8f59d0c924c Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Mon, 5 Jun 2017 07:10:49 +0200 Subject: [PATCH] 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.) --- pkgs/applications/misc/calibre/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/misc/calibre/default.nix b/pkgs/applications/misc/calibre/default.nix index 6dcd96216cb..5d228d264d0 100644 --- a/pkgs/applications/misc/calibre/default.nix +++ b/pkgs/applications/misc/calibre/default.nix @@ -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 {