2015-08-12 17:38:16 +01:00
|
|
|
{ lib, stdenv, fetchurl, zlib, bzip2 }:
|
|
|
|
|
2019-05-12 22:46:18 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cbc";
|
|
|
|
version = "2.10.2";
|
2015-08-12 17:38:16 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-05-12 22:46:18 +01:00
|
|
|
url = "https://www.coin-or.org/download/source/Cbc/Cbc-${version}.tgz";
|
|
|
|
sha256 = "0frbxkh6nbh46kaxsx5bmzridgip3v7aq75l8yak5npiiq4jlwv3";
|
2015-08-12 17:38:16 +01:00
|
|
|
};
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "-C" ];
|
2015-08-12 17:38:16 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-09 01:35:33 +00:00
|
|
|
|
2015-08-12 17:38:16 +01:00
|
|
|
buildInputs = [ zlib bzip2 ];
|
|
|
|
|
|
|
|
# FIXME: move share/coin/Data to a separate output?
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://projects.coin-or.org/Cbc;
|
|
|
|
license = lib.licenses.epl10;
|
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
2015-08-19 10:52:43 +01:00
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
2019-05-12 22:46:18 +01:00
|
|
|
broken = stdenv.isAarch64; # Missing <immintrin.h> after 2.10.0
|
2015-08-12 17:38:16 +01:00
|
|
|
description = "A mixed integer programming solver";
|
|
|
|
};
|
|
|
|
}
|