diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/science/math/cbc/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/science/math/cbc/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/science/math/cbc/default.nix b/nixpkgs/pkgs/applications/science/math/cbc/default.nix new file mode 100644 index 000000000000..b75f3d3f7868 --- /dev/null +++ b/nixpkgs/pkgs/applications/science/math/cbc/default.nix @@ -0,0 +1,30 @@ +{ 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"; + }; +} |