|
|
|
@ -93,13 +93,16 @@ stdenv.mkDerivation rec { |
|
|
|
|
# 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 |
|
|
|
|
sed -i -e "2iexport LD_LIBRARY_PATH=${zlib}/lib:\''${LD_LIBRARY_PATH}\n" $path |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
# Fix xkeyboard config path for Qt |
|
|
|
|
for path in mathematica Mathematica; do |
|
|
|
|
sed -i -e "2iexport QT_XKB_CONFIG_ROOT=\"${xkeyboard_config}/share/X11/xkb\"\n" $path |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
# Remove some broken libraries |
|
|
|
|
rm $out/libexec/Mathematica/SystemFiles/Libraries/Linux-x86-64/libz.so* |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
preFixup = '' |
|
|
|
|