Merge pull request #224359 from hesiod/coin-utils

This commit is contained in:
Sandro 2023-04-06 01:08:07 +02:00 committed by GitHub
commit 5ea854454e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 15 deletions

View File

@ -1,19 +1,23 @@
{ lib, stdenv, fetchurl, zlib }:
{ lib, stdenv, fetchFromGitHub, pkg-config, coin-utils, zlib, osi }:
stdenv.mkDerivation rec {
version = "1.17.6";
version = "1.17.7";
pname = "clp";
src = fetchurl {
url = "https://www.coin-or.org/download/source/Clp/Clp-${version}.tgz";
sha256 = "0ap1f0lxppa6pnbc4bg7ih7a96avwaki482nig8w5fr3vg9wvkzr";
src = fetchFromGitHub {
owner = "coin-or";
repo = "Clp";
rev = "releases/${version}";
hash = "sha256-CfAK/UbGaWvyk2ZxKEgziVruzZfz7WMJVi/YvdR/UNA=";
};
propagatedBuildInputs = [ zlib ];
nativeBuildInputs = [ pkg-config ];
propagatedBuildInputs = [ zlib coin-utils osi ];
doCheck = true;
meta = with lib; {
license = licenses.epl10;
license = licenses.epl20;
homepage = "https://github.com/coin-or/Clp";
description = "An open-source linear programming solver written in C++";
platforms = platforms.darwin ++ [ "x86_64-linux" ];

View File

@ -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 ];
};
}

View File

@ -1,19 +1,21 @@
{ stdenv, lib, fetchurl, gfortran, pkg-config
, blas, zlib, bzip2
{ stdenv, lib, fetchFromGitHub, gfortran, pkg-config
, blas, zlib, bzip2, coin-utils
, withGurobi ? false, gurobi
, withCplex ? false, cplex }:
stdenv.mkDerivation rec {
pname = "osi";
version = "0.108.6";
version = "0.108.7";
src = fetchurl {
url = "https://www.coin-or.org/download/source/Osi/Osi-${version}.tgz";
sha256 = "1n2jlpq4aikbp0ncs16f7q1pj7yk6kny1bh4fmjaqnwrjw63zvsp";
src = fetchFromGitHub {
owner = "coin-or";
repo = "Osi";
rev = "releases/${version}";
hash = "sha256-MTmt/MgsfEAXor2EZXJX05bQg5oOtMaN7oNxGv2PHJg=";
};
buildInputs =
[ blas zlib bzip2 ]
[ blas zlib bzip2 coin-utils ]
++ lib.optional withGurobi gurobi
++ lib.optional withCplex cplex;
nativeBuildInputs = [ gfortran pkg-config ];
@ -35,7 +37,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "An abstract base class to a generic linear programming (LP) solver";
homepage = "https://github.com/coin-or/Osi";
license = licenses.epl10;
license = licenses.epl20;
platforms = platforms.unix;
maintainers = with maintainers; [ abbradar ];
};

View File

@ -37185,6 +37185,8 @@ with pkgs;
cliquer = callPackage ../development/libraries/science/math/cliquer { };
coin-utils = callPackage ../development/libraries/science/math/coin-utils { };
ecos = callPackage ../development/libraries/science/math/ecos { };
flintqs = callPackage ../development/libraries/science/math/flintqs { };