Merge pull request #27440 from mnacamura/mathematica11_fix_ldpath

mathematica: fix library paths

authored by Frederik Rietdijk and committed by GitHub 006edcc3 651236d4

+7
+7
pkgs/applications/science/math/mathematica/default.nix
··· 56 unixODBC 57 libxml2 58 libuuid 59 ] ++ (with xorg; [ 60 libX11 61 libXext ··· 93 94 echo "=== Running MathInstaller ===" 95 ./MathInstaller -auto -createdir=y -execdir=$out/bin -targetdir=$out/libexec/Mathematica -silent 96 ''; 97 98 preFixup = ''
··· 56 unixODBC 57 libxml2 58 libuuid 59 + zlib 60 ] ++ (with xorg; [ 61 libX11 62 libXext ··· 94 95 echo "=== Running MathInstaller ===" 96 ./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 103 ''; 104 105 preFixup = ''