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