Mathematica: 11.0.1 -> 11.2.0

This commit is contained in:
Guanpeng Xu 2017-10-05 08:14:53 +08:00 committed by Bjørn Forsman
parent f66d92a161
commit 2eeb00441d

View File

@ -3,6 +3,7 @@
, patchelf , patchelf
, requireFile , requireFile
, alsaLib , alsaLib
, dbus
, fontconfig , fontconfig
, freetype , freetype
, gcc , gcc
@ -12,6 +13,7 @@
, opencv , opencv
, openssl , openssl
, unixODBC , unixODBC
, xkeyboard_config
, xorg , xorg
, zlib , zlib
, libxml2 , libxml2
@ -26,7 +28,7 @@ let
throw "Mathematica requires i686-linux or x86_64 linux"; throw "Mathematica requires i686-linux or x86_64 linux";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "11.0.1"; version = "11.2.0";
name = "mathematica-${version}"; name = "mathematica-${version}";
@ -37,7 +39,7 @@ stdenv.mkDerivation rec {
already part of the store. Find the file on your Mathematica CD already part of the store. Find the file on your Mathematica CD
and add it to the nix store with nix-store --add-fixed sha256 <FILE>. and add it to the nix store with nix-store --add-fixed sha256 <FILE>.
''; '';
sha256 = "1qqwz8gbw74rnnyirpbdanwx3d25s4x0i4zc7bs6kp959x66cdkw"; sha256 = "4a1293cc1c404303aa1cab1bd273c7be151d37ac5ed928fbbb18e9c5ab2d8df9";
}; };
buildInputs = [ buildInputs = [
@ -45,6 +47,7 @@ stdenv.mkDerivation rec {
patchelf patchelf
alsaLib alsaLib
coreutils coreutils
dbus
fontconfig fontconfig
freetype freetype
gcc.cc gcc.cc
@ -54,6 +57,7 @@ stdenv.mkDerivation rec {
opencv opencv
openssl openssl
unixODBC unixODBC
xkeyboard_config
libxml2 libxml2
libuuid libuuid
zlib zlib
@ -100,6 +104,12 @@ stdenv.mkDerivation rec {
for path in mathematica MathKernel Mathematica WolframKernel wolfram math; do 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 's#export LD_LIBRARY_PATH$#export LD_LIBRARY_PATH=${zlib}/lib:\''${LD_LIBRARY_PATH}#' $path
done done
# Fix xkeyboard config path for Qt
for path in mathematica Mathematica; do
line=$(grep -n QT_PLUGIN_PATH $path | sed 's/:.*//')
sed -i -e "$line iexport QT_XKB_CONFIG_ROOT=\"${xkeyboard_config}/share/X11/xkb\"" $path
done
''; '';
preFixup = '' preFixup = ''