mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
d8984f8522
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
29 lines
603 B
Nix
29 lines
603 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/lib/${python.libPrefix}/site-packages/gurobipy/gurobipy.so
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The Gurobi Python interface";
|
|
homepage = "https://www.gurobi.com";
|
|
license = licenses.unfree;
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|