diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/science/math/cbc/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/science/math/cbc/default.nix | 28 |
1 files changed, 28 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..93aefbca2160 --- /dev/null +++ b/nixpkgs/pkgs/applications/science/math/cbc/default.nix @@ -0,0 +1,28 @@ +{ lib, stdenv, fetchurl, zlib, bzip2 }: + +stdenv.mkDerivation { + name = "cbc-2.9.9"; + + src = fetchurl { + url = "https://www.coin-or.org/download/source/Cbc/Cbc-2.9.9.tgz"; + sha256 = "1w8axdzm05xf5y13c31w7rc5z6ywxqxiwafnxcq3p195kgj0915a"; + }; + + 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; + description = "A mixed integer programming solver"; + }; +} |