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 56 unixODBC 57 57 libxml2 58 58 libuuid 59 + zlib 59 60 ] ++ (with xorg; [ 60 61 libX11 61 62 libXext ··· 93 94 94 95 echo "=== Running MathInstaller ===" 95 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 96 103 ''; 97 104 98 105 preFixup = ''