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