653837881e
which should be always preferred
29 lines
651 B
Nix
29 lines
651 B
Nix
{ lib, buildPythonPackage, python, gurobi }:
|
|
|
|
buildPythonPackage {
|
|
pname = "gurobipy";
|
|
version = "9.1.2";
|
|
|
|
src = gurobi.src;
|
|
|
|
setSourceRoot = "sourceRoot=$(echo gurobi*/*64)";
|
|
|
|
patches = [ ./no-clever-setup.patch ];
|
|
|
|
postInstall = ''
|
|
mv lib/libgurobi*.so* $out/lib
|
|
'';
|
|
|
|
postFixup = ''
|
|
patchelf --set-rpath $out/lib \
|
|
$out/${python.sitePackages}/gurobipy/gurobipy.so
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The Gurobi Python interface";
|
|
homepage = "https://www.gurobi.com";
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
license = licenses.unfree;
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|