From 596494e41b1c32307712ad5c89d652387c66b672 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Wed, 12 Feb 2025 04:06:53 +0100 Subject: [PATCH] Added mathematica installer --- user-modules/development/default.nix | 2 +- user-modules/development/ide/mathematica/.gitignore | 1 + .../ide/{mathematica.nix => mathematica/default.nix} | 9 +++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 user-modules/development/ide/mathematica/.gitignore rename user-modules/development/ide/{mathematica.nix => mathematica/default.nix} (59%) diff --git a/user-modules/development/default.nix b/user-modules/development/default.nix index 510de54..8cb842a 100644 --- a/user-modules/development/default.nix +++ b/user-modules/development/default.nix @@ -2,7 +2,7 @@ { imports = [ - ./ide/mathematica.nix + ./ide/mathematica/default.nix ./ide/matlab.nix # TODO: Move languages to make clear it is just IDE configuration # Languages should be installed with devShells, however the IDE must be configured globally diff --git a/user-modules/development/ide/mathematica/.gitignore b/user-modules/development/ide/mathematica/.gitignore new file mode 100644 index 0000000..714dc0c --- /dev/null +++ b/user-modules/development/ide/mathematica/.gitignore @@ -0,0 +1 @@ +Wolfram_14.1.0_Lin_Bndl.sh \ No newline at end of file diff --git a/user-modules/development/ide/mathematica.nix b/user-modules/development/ide/mathematica/default.nix similarity index 59% rename from user-modules/development/ide/mathematica.nix rename to user-modules/development/ide/mathematica/default.nix index ffb32a8..e4c2c8f 100644 --- a/user-modules/development/ide/mathematica.nix +++ b/user-modules/development/ide/mathematica/default.nix @@ -8,6 +8,11 @@ with lib; let cfg = config.modules.mathematica; + + my-mathematica = pkgs.mathematica.override { + # TODO: Just use a generic name for the installer? + source = ./Wolfram_14.1.0_LIN_Bndl.sh; + }; in { options.modules.mathematica = { @@ -19,8 +24,8 @@ in "mathematica" ]; - home.packages = with pkgs; [ - mathematica + home.packages = [ + my-mathematica ]; }; }