mathematica: 12.0.0 -> 12.1.0

This commit is contained in:
Guanpeng Xu 2020-03-29 20:03:53 +08:00 committed by Frederik Rietdijk
parent 439f083931
commit d2702c915f
2 changed files with 11 additions and 2 deletions

View File

@ -9,6 +9,7 @@
, freetype
, gcc
, glib
, libssh2
, ncurses
, opencv
, openssl
@ -44,9 +45,11 @@ stdenv.mkDerivation rec {
gcc.cc
gcc.libc
glib
libssh2
ncurses
opencv
openssl
stdenv.cc.cc.lib
unixODBC
xkeyboard_config
libxml2
@ -93,7 +96,7 @@ stdenv.mkDerivation rec {
# Fix library paths
cd $out/libexec/Mathematica/Executables
for path in mathematica MathKernel Mathematica WolframKernel wolfram math; do
sed -i -e "2iexport LD_LIBRARY_PATH=${zlib}/lib:\''${LD_LIBRARY_PATH}\n" $path
sed -i -e "2iexport LD_LIBRARY_PATH=${zlib}/lib:${stdenv.cc.cc.lib}/lib:${libssh2}/lib:\''${LD_LIBRARY_PATH}\n" $path
done
# Fix xkeyboard config path for Qt
@ -102,7 +105,7 @@ stdenv.mkDerivation rec {
done
# Remove some broken libraries
rm $out/libexec/Mathematica/SystemFiles/Libraries/Linux-x86-64/libz.so*
rm -f $out/libexec/Mathematica/SystemFiles/Libraries/Linux-x86-64/libz.so*
'';
preFixup = ''

View File

@ -7,6 +7,12 @@
let allVersions = with lib; flip map
# N.B. Versions in this list should be ordered from newest to oldest.
[
{
version = "12.1.0";
lang = "en";
language = "English";
sha256 = "15m9l20jvkxh5w6mbp81ys7mx2lx5j8acw5gz0il89lklclgb8z7";
}
{
version = "12.0.0";
lang = "en";