Merge pull request #224359 from hesiod/coin-utils
This commit is contained in:
commit
5ea854454e
|
@ -1,19 +1,23 @@
|
||||||
{ lib, stdenv, fetchurl, zlib }:
|
{ lib, stdenv, fetchFromGitHub, pkg-config, coin-utils, zlib, osi }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.17.6";
|
version = "1.17.7";
|
||||||
pname = "clp";
|
pname = "clp";
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://www.coin-or.org/download/source/Clp/Clp-${version}.tgz";
|
owner = "coin-or";
|
||||||
sha256 = "0ap1f0lxppa6pnbc4bg7ih7a96avwaki482nig8w5fr3vg9wvkzr";
|
repo = "Clp";
|
||||||
|
rev = "releases/${version}";
|
||||||
|
hash = "sha256-CfAK/UbGaWvyk2ZxKEgziVruzZfz7WMJVi/YvdR/UNA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ zlib ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ zlib coin-utils osi ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
license = licenses.epl10;
|
license = licenses.epl20;
|
||||||
homepage = "https://github.com/coin-or/Clp";
|
homepage = "https://github.com/coin-or/Clp";
|
||||||
description = "An open-source linear programming solver written in C++";
|
description = "An open-source linear programming solver written in C++";
|
||||||
platforms = platforms.darwin ++ [ "x86_64-linux" ];
|
platforms = platforms.darwin ++ [ "x86_64-linux" ];
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
{ lib, stdenv, fetchFromGitHub, pkg-config }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "2.11.6";
|
||||||
|
pname = "coinutils";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "coin-or";
|
||||||
|
repo = "CoinUtils";
|
||||||
|
rev = "releases/${version}";
|
||||||
|
hash = "sha256-avXp7eKSZ/Fe1QmSJiNDMnPQ70LlOHrBeUYb9lhka8c=";
|
||||||
|
};
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
license = licenses.epl20;
|
||||||
|
homepage = "https://github.com/coin-or/CoinUtils";
|
||||||
|
description = "Collection of classes and helper functions that are generally useful to multiple COIN-OR projects";
|
||||||
|
maintainers = with maintainers; [ tmarkus ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,19 +1,21 @@
|
||||||
{ stdenv, lib, fetchurl, gfortran, pkg-config
|
{ stdenv, lib, fetchFromGitHub, gfortran, pkg-config
|
||||||
, blas, zlib, bzip2
|
, blas, zlib, bzip2, coin-utils
|
||||||
, withGurobi ? false, gurobi
|
, withGurobi ? false, gurobi
|
||||||
, withCplex ? false, cplex }:
|
, withCplex ? false, cplex }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "osi";
|
pname = "osi";
|
||||||
version = "0.108.6";
|
version = "0.108.7";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://www.coin-or.org/download/source/Osi/Osi-${version}.tgz";
|
owner = "coin-or";
|
||||||
sha256 = "1n2jlpq4aikbp0ncs16f7q1pj7yk6kny1bh4fmjaqnwrjw63zvsp";
|
repo = "Osi";
|
||||||
|
rev = "releases/${version}";
|
||||||
|
hash = "sha256-MTmt/MgsfEAXor2EZXJX05bQg5oOtMaN7oNxGv2PHJg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ blas zlib bzip2 ]
|
[ blas zlib bzip2 coin-utils ]
|
||||||
++ lib.optional withGurobi gurobi
|
++ lib.optional withGurobi gurobi
|
||||||
++ lib.optional withCplex cplex;
|
++ lib.optional withCplex cplex;
|
||||||
nativeBuildInputs = [ gfortran pkg-config ];
|
nativeBuildInputs = [ gfortran pkg-config ];
|
||||||
|
@ -35,7 +37,7 @@ stdenv.mkDerivation rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An abstract base class to a generic linear programming (LP) solver";
|
description = "An abstract base class to a generic linear programming (LP) solver";
|
||||||
homepage = "https://github.com/coin-or/Osi";
|
homepage = "https://github.com/coin-or/Osi";
|
||||||
license = licenses.epl10;
|
license = licenses.epl20;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ abbradar ];
|
maintainers = with maintainers; [ abbradar ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -37185,6 +37185,8 @@ with pkgs;
|
||||||
|
|
||||||
cliquer = callPackage ../development/libraries/science/math/cliquer { };
|
cliquer = callPackage ../development/libraries/science/math/cliquer { };
|
||||||
|
|
||||||
|
coin-utils = callPackage ../development/libraries/science/math/coin-utils { };
|
||||||
|
|
||||||
ecos = callPackage ../development/libraries/science/math/ecos { };
|
ecos = callPackage ../development/libraries/science/math/ecos { };
|
||||||
|
|
||||||
flintqs = callPackage ../development/libraries/science/math/flintqs { };
|
flintqs = callPackage ../development/libraries/science/math/flintqs { };
|
||||||
|
|
Loading…
Reference in a new issue