12 aarch64-linux = "armlinux64";
13 x86_64-linux = "linux64";
15 .${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
17 stdenv.mkDerivation rec {
22 url = "https://packages.gurobi.com/${lib.versions.majorMinor version}/gurobi${version}_${platform}.tar.gz";
25 aarch64-linux = "sha256-jhICy/CGahb6eMPkvg+jKIjskS+N3zM8KVYdBXlk74Y=";
26 x86_64-linux = "sha256-or3Jwda/jrTlUaGErxzo17BDXqjn0ZoBfMfVP9Xv2hI=";
28 .${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
31 sourceRoot = "gurobi${builtins.replaceStrings [ "." ] [ "" ] version}/${platform}";
38 (python3.withPackages (ps: [
45 makeFlags = [ "--directory=src/build" ];
55 cp lib/gurobi.py $out/bin/gurobi.sh
58 cp include/gurobi*.h $out/include/
61 cp lib/*.jar $out/lib/
62 cp lib/libGurobiJni*.so $out/lib/
63 cp lib/libgurobi*.so* $out/lib/
64 cp lib/libgurobi*.a $out/lib/
65 cp src/build/*.a $out/lib/
67 mkdir -p $out/share/java
68 ln -s $out/lib/gurobi.jar $out/share/java/
69 ln -s $out/lib/gurobi-javadoc.jar $out/share/java/
74 passthru.libSuffix = lib.replaceStrings [ "." ] [ "" ] (lib.versions.majorMinor version);
77 description = "Optimization solver for mathematical programming";
78 homepage = "https://www.gurobi.com";
79 sourceProvenance = with lib.sourceTypes; [
83 license = lib.licenses.unfree;
88 maintainers = with lib.maintainers; [ wegank ];