30 lines
796 B
Nix
30 lines
796 B
Nix
{ lib, stdenv, fetchurl, zlib, bzip2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cbc";
|
|
version = "2.10.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.coin-or.org/download/source/Cbc/Cbc-${version}.tgz";
|
|
sha256 = "1zzcg40ky5v96s7br2hqlkqdspwrn43kf3757g6c35wl29bq6f5d";
|
|
};
|
|
|
|
configureFlags = [ "-C" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
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 ];
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
broken = stdenv.isAarch64; # Missing <immintrin.h> after 2.10.0
|
|
description = "A mixed integer programming solver";
|
|
};
|
|
}
|