diff options
author | qbg <qbg@users.noreply.github.com> | 2021-12-02 07:17:23 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 15:17:23 +0200 |
commit | b5b4a6ac4fab75aa857c16fe7c27647d8215fd55 (patch) | |
tree | b23d819c393f3a7a4745cb81ce987aa9d4a7bb28 /pkgs/applications/science | |
parent | ee00acc317f76484793f563d843ea98fbfdcfc01 (diff) |
mathematica: Install desktop items (#147641)
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r-- | pkgs/applications/science/math/mathematica/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/science/math/mathematica/default.nix b/pkgs/applications/science/math/mathematica/default.nix index 10301f062e571..af88263889773 100644 --- a/pkgs/applications/science/math/mathematica/default.nix +++ b/pkgs/applications/science/math/mathematica/default.nix @@ -90,7 +90,16 @@ stdenv.mkDerivation rec { cd Installer # don't restrict PATH, that has already been done sed -i -e 's/^PATH=/# PATH=/' MathInstaller - sed -i -e 's/\/bin\/bash/\/bin\/sh/' MathInstaller + + # Fix the installation script as follows: + # 1. Adjust the shebang + # 2. Use the wrapper in the desktop items + substituteInPlace MathInstaller \ + --replace "/bin/bash" "/bin/sh" \ + --replace "Executables/Mathematica" "../../bin/mathematica" + + # Install the desktop items + export XDG_DATA_HOME="$out/share" echo "=== Running MathInstaller ===" ./MathInstaller -auto -createdir=y -execdir=$out/bin -targetdir=$out/libexec/Mathematica -silent |