Add gurobi package

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-10-16 10:38:20 -04:00
parent b3debdc046
commit a9c65b31b9
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ 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 ];
};
}

View file

@ -4437,6 +4437,8 @@ let
gts = callPackage ../development/libraries/gts { };
gurobi = callPackage ../development/libraries/gurobi {};
gvfs = callPackage ../development/libraries/gvfs { };
gwenhywfar = callPackage ../development/libraries/gwenhywfar { };