about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-05 00:07:24 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-05 00:07:24 +0100
commitd9c13a73c21d656bdbfa6802b1d8b823f9efa588 (patch)
tree31c1bfb6da9a5a191057bd71cc22bbeeb137f95a /nixos/modules/programs
parentc88055e1a2703fbc7dd1d072f273626afe1d6b97 (diff)
downloadnixlib-d9c13a73c21d656bdbfa6802b1d8b823f9efa588.tar
nixlib-d9c13a73c21d656bdbfa6802b1d8b823f9efa588.tar.gz
nixlib-d9c13a73c21d656bdbfa6802b1d8b823f9efa588.tar.bz2
nixlib-d9c13a73c21d656bdbfa6802b1d8b823f9efa588.tar.lz
nixlib-d9c13a73c21d656bdbfa6802b1d8b823f9efa588.tar.xz
nixlib-d9c13a73c21d656bdbfa6802b1d8b823f9efa588.tar.zst
nixlib-d9c13a73c21d656bdbfa6802b1d8b823f9efa588.zip
gurobi: Remove
It's proprietary, non-redistributable software.
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/gurobi.nix43
1 files changed, 0 insertions, 43 deletions
diff --git a/nixos/modules/programs/gurobi.nix b/nixos/modules/programs/gurobi.nix
deleted file mode 100644
index 7fa099b0884f..000000000000
--- a/nixos/modules/programs/gurobi.nix
+++ /dev/null
@@ -1,43 +0,0 @@
-{ config, pkgs, ... }:
-
-with pkgs.lib;
-
-let
-  cfg = config.programs.gurobi;
-in {
-  options = {
-    programs.gurobi = {
-      license = mkOption {
-        default = null;
-
-        description = "Path to the Gurobi license file if not using a token server";
-
-        type = types.nullOr types.path;
-      };
-
-      tokenServerAddress = mkOption {
-        default = null;
-
-        description = "Address of the token server";
-
-        type = types.nullOr types.string;
-      };
-    };
-  };
-
-  config = mkIf (cfg.license != null || cfg.tokenServerAddress != null) {
-    assertions = [ {
-      assertion = cfg.license == null || cfg.tokenServerAddress == null;
-      message = "Please only set one of a gurobi license file and a gurobi token server address";
-    } ];
-
-    environment.variables.GRB_LICENSE_FILE = if cfg.license != null
-      then cfg.license
-      else pkgs.writeTextFile {
-        name = "gurobi-generated-license";
-        text = "TOKENSERVER=${cfg.tokenServerAddress}";
-      };
-
-    environment.systemPackages = [ pkgs.gurobi ];
-  };
-}