Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
666 B · 29 lines
Nix
123456789101112131415161718192021222324252627282930{ 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"; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.unfree; platforms = [ "x86_64-linux" ]; };}