Skip to content

Commit

Permalink
[Backport release-24.05] mathematica: 14.0.0 -> 14.1.0 (#348324)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao authored Oct 16, 2024
2 parents e59e47a + 1d81a82 commit 84c2b04
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pkgs/applications/science/math/mathematica/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ let versions = callPackage ./versions.nix { };

matchesDoc = v:
builtins.match (if webdoc
then ".*[0-9]_LINUX.sh"
else ".*[0-9]_BNDL_LINUX.sh") v.src.name != null;
then ".*[0-9]_LIN(UX)?.sh"
else ".*_B[Nn][Dd][Ll].sh") v.src.name != null;

in

Expand All @@ -77,7 +77,7 @@ callPackage real-drv {
homepage = "http://www.wolfram.com/mathematica/";
license = licenses.unfree;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ herberteuler rafaelrc ];
maintainers = with maintainers; [ herberteuler rafaelrc chewblacka ];
platforms = [ "x86_64-linux" ];
};
}
18 changes: 12 additions & 6 deletions pkgs/applications/science/math/mathematica/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,15 @@ in stdenv.mkDerivation {
mkdir -p "$out/lib/udev/rules.d"
# Patch MathInstaller's shebangs and udev rules dir
patchShebangs MathInstaller
substituteInPlace MathInstaller \
# Set name of installer file
if [ -f "MathInstaller" ]; then
INSTALLER="MathInstaller"
else
INSTALLER="WolframInstaller"
fi
# Patch Installer's shebangs and udev rules dir
patchShebangs $INSTALLER
substituteInPlace $INSTALLER \
--replace /etc/udev/rules.d $out/lib/udev/rules.d
# Remove PATH restriction, root and avahi daemon checks, and hostname call
Expand All @@ -169,13 +175,13 @@ in stdenv.mkDerivation {
s/^\s*checkAvahiDaemon$/:/
s/^\s*installBundledInstall$/:/
s/`hostname`/""/
' MathInstaller
' $INSTALLER
# NOTE: some files placed under HOME may be useful
XDG_DATA_HOME="$out/share" HOME="$TMPDIR/home" vernierLink=y \
./MathInstaller -execdir="$out/bin" -targetdir="$out/libexec/Mathematica" -auto -verbose -createdir=y
./$INSTALLER -execdir="$out/bin" -targetdir="$out/libexec/Mathematica" -auto -verbose -createdir=y
# Check if MathInstaller produced any errors
# Check if Installer produced any errors
errLog="$out/libexec/Mathematica/InstallErrors"
if [ -f "$errLog" ]; then
echo "Installation errors:"
Expand Down
14 changes: 14 additions & 0 deletions pkgs/applications/science/math/mathematica/versions.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@
*/

let versions = [
{
version = "14.1.0";
lang = "en";
language = "English";
sha256 = "sha256-PCpjwqA6NC+iwvYxddYBlmF5+vl76r+MoIYAL91WFns=";
installer = "Wolfram_14.1.0_LIN.sh";
}
{
version = "14.1.0";
lang = "en";
language = "English";
sha256 = "sha256-pnu60Pv3xo3+MAkDLiU3yTPVbbQ00diV45vSVL8B310=";
installer = "Wolfram_14.1.0_LIN_Bndl.sh";
}
{
version = "14.0.0";
lang = "en";
Expand Down

0 comments on commit 84c2b04

Please sign in to comment.