gurobi: stay with python2
This commit is contained in:
parent
d8ed6258b4
commit
7368564f99
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchurl, autoPatchelfHook, python }:
|
{ stdenv, lib, fetchurl, autoPatchelfHook, python2 }:
|
||||||
|
|
||||||
let
|
let
|
||||||
majorVersion = "8.1";
|
majorVersion = "8.1";
|
||||||
@ -14,7 +14,9 @@ in stdenv.mkDerivation rec {
|
|||||||
sourceRoot = "gurobi${builtins.replaceStrings ["."] [""] version}/linux64";
|
sourceRoot = "gurobi${builtins.replaceStrings ["."] [""] version}/linux64";
|
||||||
|
|
||||||
nativeBuildInputs = [ autoPatchelfHook ];
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
buildInputs = [ (python.withPackages (ps: [ ps.gurobipy ])) ];
|
buildInputs = [ (python2.withPackages (ps: [ ps.gurobipy ])) ];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cd src/build
|
cd src/build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user