diff options
author | Guillaume Maudoux <guillaume.maudoux@uclouvain.be> | 2017-06-05 07:10:49 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2017-06-05 07:15:02 +0200 |
commit | e6550cb5c19599d7016bab488f94e8f59d0c924c (patch) | |
tree | 010f474231fc599a72c83a11347580a6316437c8 /pkgs/applications | |
parent | 2e08839cbe430a1e47d08467a55dd3c2dd9facad (diff) | |
download | nixlib-e6550cb5c19599d7016bab488f94e8f59d0c924c.tar nixlib-e6550cb5c19599d7016bab488f94e8f59d0c924c.tar.gz nixlib-e6550cb5c19599d7016bab488f94e8f59d0c924c.tar.bz2 nixlib-e6550cb5c19599d7016bab488f94e8f59d0c924c.tar.lz nixlib-e6550cb5c19599d7016bab488f94e8f59d0c924c.tar.xz nixlib-e6550cb5c19599d7016bab488f94e8f59d0c924c.tar.zst nixlib-e6550cb5c19599d7016bab488f94e8f59d0c924c.zip |
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.)
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/calibre/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/misc/calibre/default.nix b/pkgs/applications/misc/calibre/default.nix index 6dcd96216cb3..5d228d264d09 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 { |