Merge pull request #27440 from mnacamura/mathematica11_fix_ldpath
mathematica: fix library paths
commit006edcc316829cd161e2b393d26144a6ee9623a5
authorFrederik Rietdijk <freddyrietdijk@fridh.nl>
dateSun 13 Aug 2017, 22:55 (9 years ago)
parent651236dfb2302e
pkgs/applications/science/math/mathematica/default.nix+7
@@ -56,6 +56,7 @@ stdenv.mkDerivation rec {
5656 unixODBC
5757 libxml2
5858 libuuid
59+ zlib
5960 ] ++ (with xorg; [
6061 libX11
6162 libXext
@@ -93,6 +94,12 @@ stdenv.mkDerivation rec {
9394
9495 echo "=== Running MathInstaller ==="
9596 ./MathInstaller -auto -createdir=y -execdir=$out/bin -targetdir=$out/libexec/Mathematica -silent
97+
98+ # Fix library paths
99+ cd $out/libexec/Mathematica/Executables
100+ for path in mathematica MathKernel Mathematica WolframKernel wolfram math; do
101+ sed -i -e 's#export LD_LIBRARY_PATH$#export LD_LIBRARY_PATH=${zlib}/lib:\''${LD_LIBRARY_PATH}#' $path
102+ done
96103 '';
97104
98105 preFixup = ''