diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index b8f09bc48e0c..09625511bba5 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -46,7 +46,6 @@ ./programs/bash/command-not-found.nix ./programs/blcr.nix ./programs/environment.nix - ./programs/gurobi.nix ./programs/info.nix ./programs/shadow.nix ./programs/shell.nix @@ -120,7 +119,6 @@ ./services/misc/felix.nix ./services/misc/folding-at-home.nix ./services/misc/gpsd.nix - ./services/misc/gurobi.nix ./services/misc/nix-daemon.nix ./services/misc/nix-gc.nix ./services/misc/nixos-manual.nix 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 ]; - }; -} diff --git a/nixos/modules/services/misc/gurobi.nix b/nixos/modules/services/misc/gurobi.nix deleted file mode 100644 index 9cd76a1e78f7..000000000000 --- a/nixos/modules/services/misc/gurobi.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ config, pkgs, ... }: - -with pkgs.lib; - -let - cfg = config.services.gurobi.tokenServer; -in { - options = { - services.gurobi.tokenServer = { - enable = mkOption { - default = false; - - description = "Whether to enable the Gurobi token server"; - - type = types.bool; - }; - - license = mkOption { - description = "Path to the Gurobi license file"; - - type = types.path; - }; - }; - }; - - config = mkIf cfg.enable { - systemd.services.gurobi-token-server = { - description = "Gurobi token server"; - - wantedBy = [ "multi-user.target" ]; - - environment.GRB_LICENSE_FILE = cfg.license; - - serviceConfig = { - ExecStart = "${pkgs.gurobi}/bin/grb_ts"; - - Type = "forking"; - }; - }; - }; -} diff --git a/pkgs/development/libraries/gurobi/default.nix b/pkgs/development/libraries/gurobi/default.nix deleted file mode 100644 index 4bdee56ae991..000000000000 --- a/pkgs/development/libraries/gurobi/default.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ stdenv, requireFile }: - -stdenv.mkDerivation { - name = "gurobi-5.6.0"; - - src = requireFile { - name = "gurobi5.6.0_linux64.tar.gz"; - sha256 = "1qwfjyx5y71x97gkndqnl9h4xc8hl48zwcwss7jagqfj3gxwvnky"; - url = "http://www.gurobi.com/download/gurobi-optimizer"; - }; - - installPhase = "mv linux64 $out"; - - fixupPhase = '' - interp=`cat $NIX_GCC/nix-support/dynamic-linker` - find $out/bin -type f -executable -exec patchelf --interpreter "$interp" --set-rpath $out/lib {} \; - ''; - - meta = { - description = "State-of-the-art mathematical programming solver"; - homepage = http://www.gurobi.com/; - license = "unfree"; - maintainers = [ stdenv.lib.maintainers.shlevy ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8ed8524a0277..0e976cbc0448 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4450,8 +4450,6 @@ let gts = callPackage ../development/libraries/gts { }; - gurobi = callPackage ../development/libraries/gurobi {}; - gvfs = callPackage ../development/libraries/gvfs { }; gwenhywfar = callPackage ../development/libraries/gwenhywfar { };