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