21 assert (!blas.isILP64) && (!lapack.isILP64);
23 stdenv.mkDerivation rec {
27 src = fetchFromGitHub {
30 rev = "releases/${version}";
31 sha256 = "sha256-nqjAQ1NdNJ/T4p8YljEWRt/uy2aDwyBeAsag0TmRc5Q=";
34 __structuredAttrs = true;
55 configureFlags = lib.optionals stdenv.hostPlatform.isDarwin [
56 "--with-asl-lib=-lipoptamplinterface -lamplsolver"
59 # Fix doc install. Should not be necessary after next release
60 # ref https://github.com/coin-or/Bonmin/commit/4f665bc9e489a73cb867472be9aea518976ecd28
61 sourceRoot = "${src.name}/Bonmin";
63 # Fontconfig error: Cannot load default config file: No such file: (null)
64 env.FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
66 # Fontconfig error: No writable cache directories
67 preBuild = "export XDG_CACHE_HOME=$(mktemp -d)";
72 # ignore one failing test
73 postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
74 substituteInPlace test/Makefile.in --replace-fail \
75 "./unitTest\''$(EXEEXT)" \
79 # install documentation
80 postInstall = "make install-doxygen-docs";
83 description = "Open-source code for solving general MINLP (Mixed Integer NonLinear Programming) problems";
84 mainProgram = "bonmin";
85 homepage = "https://github.com/coin-or/Bonmin";
86 license = lib.licenses.epl10;
87 platforms = lib.platforms.unix;
88 maintainers = with lib.maintainers; [ aanderse ];