diff options
author | Aaron Andersen <aaron@fosslib.net> | 2022-03-01 11:20:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 11:20:36 -0500 |
commit | fe4da5c0a90287dc85045da689e001941da8fb71 (patch) | |
tree | 80de42ec0773f4781a754e8f4b1fd7843509c632 /pkgs/development/libraries/science/math | |
parent | 8eaf3b2c6421f3c69af4aec2e83d212546c58d93 (diff) | |
parent | 5122b3eeaf14135163a22d207cc9180fd96a3771 (diff) | |
download | nixpkgs-fe4da5c0a90287dc85045da689e001941da8fb71.tar nixpkgs-fe4da5c0a90287dc85045da689e001941da8fb71.tar.gz nixpkgs-fe4da5c0a90287dc85045da689e001941da8fb71.tar.bz2 nixpkgs-fe4da5c0a90287dc85045da689e001941da8fb71.tar.lz nixpkgs-fe4da5c0a90287dc85045da689e001941da8fb71.tar.xz nixpkgs-fe4da5c0a90287dc85045da689e001941da8fb71.tar.zst nixpkgs-fe4da5c0a90287dc85045da689e001941da8fb71.zip |
Merge pull request #161883 from aanderse/bonmin
bonmin: init at 1.8.8
Diffstat (limited to 'pkgs/development/libraries/science/math')
-rw-r--r-- | pkgs/development/libraries/science/math/bonmin/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/libraries/science/math/bonmin/default.nix b/pkgs/development/libraries/science/math/bonmin/default.nix new file mode 100644 index 00000000000..9526a625018 --- /dev/null +++ b/pkgs/development/libraries/science/math/bonmin/default.nix @@ -0,0 +1,51 @@ +{ lib +, stdenv +, fetchFromGitHub +, gfortran +, pkg-config +, blas +, bzip2 +, cbc +, clp +, ipopt +, lapack +, libamplsolver +, zlib +}: + +assert (!blas.isILP64) && (!lapack.isILP64); + +stdenv.mkDerivation rec { + pname = "bonmin"; + version = "1.8.8"; + + src = fetchFromGitHub { + owner = "coin-or"; + repo = "Bonmin"; + rev = "releases/${version}"; + sha256 = "sha256-HU25WjvG01oL3U1wG6ivTcYaN51MMxgLdKZ3AkDNe2Y="; + }; + + nativeBuildInputs = [ + gfortran + pkg-config + ]; + buildInputs = [ + blas + bzip2 + cbc + clp + ipopt + lapack + libamplsolver + zlib + ]; + + meta = with lib; { + description = "An open-source code for solving general MINLP (Mixed Integer NonLinear Programming) problems"; + homepage = "https://github.com/coin-or/Bonmin"; + license = licenses.epl10; + platforms = platforms.unix; + maintainers = with maintainers; [ aanderse ]; + }; +} |