First you find a copy of Mathematica_13.2.1_LINUX.sh
or similar and find its sha256sum
.
Then you go to nixpkgs
and copy all Mathematica files to a local directory.
You need to modify default.nix
and wrap its contents into
let pkgs = import <nixpkgs> {};
in pkgs.callPackage (
# whatever is in default.nix
) {}
Next modify sha256 checksum and filename in version.nix
to match what you have above.
Run nix hash file Mathematica_13.2.1_BNDL_LINUX.sh
.
Finally, running nix-build
will install Mathematica to Nix store.
From the Nix reference 127 doesn't seem to be in use!
Run again with max verbosity gives this, which doesn't shed much light for me.