Merge pull request #27440 from mnacamura/mathematica11_fix_ldpath
mathematica: fix library paths
This commit is contained in:
commit
006edcc316
@ -56,6 +56,7 @@ stdenv.mkDerivation rec {
|
|||||||
unixODBC
|
unixODBC
|
||||||
libxml2
|
libxml2
|
||||||
libuuid
|
libuuid
|
||||||
|
zlib
|
||||||
] ++ (with xorg; [
|
] ++ (with xorg; [
|
||||||
libX11
|
libX11
|
||||||
libXext
|
libXext
|
||||||
@ -93,6 +94,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
echo "=== Running MathInstaller ==="
|
echo "=== Running MathInstaller ==="
|
||||||
./MathInstaller -auto -createdir=y -execdir=$out/bin -targetdir=$out/libexec/Mathematica -silent
|
./MathInstaller -auto -createdir=y -execdir=$out/bin -targetdir=$out/libexec/Mathematica -silent
|
||||||
|
|
||||||
|
# Fix library paths
|
||||||
|
cd $out/libexec/Mathematica/Executables
|
||||||
|
for path in mathematica MathKernel Mathematica WolframKernel wolfram math; do
|
||||||
|
sed -i -e 's#export LD_LIBRARY_PATH$#export LD_LIBRARY_PATH=${zlib}/lib:\''${LD_LIBRARY_PATH}#' $path
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user