summary refs log tree commit diff
path: root/pkgs/development/libraries/science/math
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2022-02-25 10:37:43 -0500
committerAaron Andersen <aaron@fosslib.net>2022-03-01 09:20:46 -0500
commit5122b3eeaf14135163a22d207cc9180fd96a3771 (patch)
treeac2b9674c8a46b22b1e90dacc8f16c2f95ea469d /pkgs/development/libraries/science/math
parent23d55fff72f5fa9cbdc6a7f0a27aab71584183b9 (diff)
downloadnixpkgs-5122b3eeaf14135163a22d207cc9180fd96a3771.tar
nixpkgs-5122b3eeaf14135163a22d207cc9180fd96a3771.tar.gz
nixpkgs-5122b3eeaf14135163a22d207cc9180fd96a3771.tar.bz2
nixpkgs-5122b3eeaf14135163a22d207cc9180fd96a3771.tar.lz
nixpkgs-5122b3eeaf14135163a22d207cc9180fd96a3771.tar.xz
nixpkgs-5122b3eeaf14135163a22d207cc9180fd96a3771.tar.zst
nixpkgs-5122b3eeaf14135163a22d207cc9180fd96a3771.zip
bonmin: init at 1.8.8
Diffstat (limited to 'pkgs/development/libraries/science/math')
-rw-r--r--pkgs/development/libraries/science/math/bonmin/default.nix51
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 ];
+  };
+}