gurobi: add library suffix
This commit is contained in:
parent
57b1f53862
commit
10e1475a79
@ -1,8 +1,10 @@
|
||||
{ stdenv, fetchurl, autoPatchelfHook, python }:
|
||||
{ stdenv, lib, fetchurl, autoPatchelfHook, python }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
let
|
||||
majorVersion = "8.1";
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "gurobi-${version}";
|
||||
version = "8.1.0";
|
||||
version = "${majorVersion}.0";
|
||||
|
||||
src = with stdenv.lib; fetchurl {
|
||||
url = "http://packages.gurobi.com/${versions.majorMinor version}/gurobi${version}_linux64.tar.gz";
|
||||
@ -44,6 +46,8 @@ stdenv.mkDerivation rec {
|
||||
ln -s $out/lib/gurobi-javadoc.jar $out/share/java/
|
||||
'';
|
||||
|
||||
passthru.libSuffix = lib.replaceStrings ["."] [""] majorVersion;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Optimization solver for mathematical programming";
|
||||
homepage = https://www.gurobi.com;
|
||||
|
Loading…
Reference in New Issue
Block a user