nixpkgs/pkgs/development/libraries/science/math/ipopt/default.nix

35 lines
871 B
Nix
Raw Normal View History

2015-06-12 13:26:47 +01:00
{ stdenv, fetchurl, unzip, openblas, gfortran }:
2014-10-19 18:49:11 +01:00
stdenv.mkDerivation rec {
2015-05-18 15:05:19 +01:00
version = "3.12.3";
2014-10-19 18:49:11 +01:00
name = "ipopt-${version}";
src = fetchurl {
url = "http://www.coin-or.org/download/source/Ipopt/Ipopt-${version}.zip";
2015-05-18 15:05:19 +01:00
sha256 = "0h8qx3hq2m21qrg4v3n26v2qbhl6saxrpa7rbhnmkkcfj5s942yr";
2014-10-19 18:49:11 +01:00
};
preConfigure = ''
export CXXDEFS="-DHAVE_RAND -DHAVE_CSTRING -DHAVE_CSTDIO"
'';
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";
homepage = https://projects.coin-or.org/Ipopt;
license = licenses.epl10;
platforms = platforms.unix;
maintainers = with maintainers; [ abbradar ];
};
}