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.
I'm getting an error running this. I'm a pretty new Nix user and I'm totally stumped! Any help is much appreciated!
Output of
nix-build