2015-06-12 07:26:47 -05:00
|
|
|
{ stdenv, fetchurl, unzip, openblas, gfortran }:
|
2014-10-19 21:49:11 +04:00
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
name = "ipopt-${version}";
|
2018-10-14 08:11:02 -07:00
|
|
|
version = "3.12.11";
|
2014-10-19 21:49:11 +04:00
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://www.coin-or.org/download/source/Ipopt/Ipopt-${version}.zip";
|
2018-10-14 08:11:02 -07:00
|
|
|
sha256 = "1qihlwwqsqpbwpp6zqfa7nrmb55dndppzmdy98897aiknaa2650h";
|
2014-10-19 21:49:11 +04:00
|
|
|
};
|
|
|
|
|
|
2016-08-13 03:08:46 +03:00
|
|
|
CXXDEFS = [ "-DHAVE_RAND" "-DHAVE_CSTRING" "-DHAVE_CSTDIO" ];
|
2014-12-31 18:31:42 +01:00
|
|
|
|
2015-06-12 07:26:47 -05:00
|
|
|
configureFlags = [
|
|
|
|
|
"--with-blas-lib=-lopenblas"
|
|
|
|
|
"--with-lapack-lib=-lopenblas"
|
|
|
|
|
];
|
|
|
|
|
|
2014-10-19 21:49:11 +04:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
2015-06-12 07:26:47 -05:00
|
|
|
buildInputs = [ gfortran openblas ];
|
2014-10-19 21:49:11 +04:00
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
|
description = "A software package for large-scale nonlinear optimization";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://projects.coin-or.org/Ipopt;
|
2014-10-19 21:49:11 +04:00
|
|
|
license = licenses.epl10;
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
|
};
|
|
|
|
|
}
|