summary refs log tree commit diff
path: root/pkgs/development/libraries/gurobi/default.nix
blob: 4bdee56ae991debc18203ea812e4acd38a00aa4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 ];
  };
}