blob: 5a736f976957dbb72a5c8c96bdcf8218d041749b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ 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.9";
src = fetchFromGitHub {
owner = "coin-or";
repo = "Bonmin";
rev = "releases/${version}";
sha256 = "sha256-nqjAQ1NdNJ/T4p8YljEWRt/uy2aDwyBeAsag0TmRc5Q=";
};
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 ];
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
broken = stdenv.isDarwin;
};
}
|