2015-08-12 18:38:16 +02:00
|
|
|
{ lib, stdenv, fetchurl, zlib, bzip2 }:
|
|
|
|
|
2019-05-12 23:46:18 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cbc";
|
2021-02-13 00:48:10 +01:00
|
|
|
version = "2.10.4";
|
|
|
|
|
|
|
|
# Note: Cbc 2.10.5 contains Clp 1.17.5 which hits this bug
|
|
|
|
# that breaks or-tools https://github.com/coin-or/Clp/issues/130
|
2015-08-12 18:38:16 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-05-12 23:46:18 +02:00
|
|
|
url = "https://www.coin-or.org/download/source/Cbc/Cbc-${version}.tgz";
|
2021-02-13 00:48:10 +01:00
|
|
|
sha256 = "0zq66j1vvpslswhzi9yfgkv6vmg7yry4pdmfgqaqw2vhyqxnsy39";
|
2015-08-12 18:38:16 +02:00
|
|
|
};
|
|
|
|
|
2021-02-13 00:48:10 +01:00
|
|
|
# or-tools has a hard dependency on Cbc static libraries, so we build both
|
|
|
|
configureFlags = [ "-C" "--enable-static" ];
|
2015-08-12 18:38:16 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-09 02:35:33 +01:00
|
|
|
|
2015-08-12 18:38:16 +02:00
|
|
|
buildInputs = [ zlib bzip2 ];
|
|
|
|
|
|
|
|
# FIXME: move share/coin/Data to a separate output?
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://projects.coin-or.org/Cbc";
|
2015-08-12 18:38:16 +02:00
|
|
|
license = lib.licenses.epl10;
|
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
2015-08-19 11:52:43 +02:00
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
2015-08-12 18:38:16 +02:00
|
|
|
description = "A mixed integer programming solver";
|
|
|
|
};
|
|
|
|
}
|