nixpkgs-suyu/pkgs/applications/science/math/cbc/default.nix

34 lines
954 B
Nix
Raw Normal View History

2015-08-12 18:38:16 +02:00
{ lib, stdenv, fetchurl, zlib, bzip2 }:
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 {
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;
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 = {
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";
};
}