nixpkgs-suyu/pkgs/development/libraries/science/math/ipopt/default.nix
Raffael Mancini 3878472f02 ipopt: fix build after minor gcc update (close #5519)
The configure script only checks for a specific version to enable a fix in
finding cstdlib and cstring.
2015-01-01 11:12:19 +01:00

29 lines
789 B
Nix

{ stdenv, fetchurl, unzip, blas, liblapack, gfortran }:
stdenv.mkDerivation rec {
version = "3.11.9";
name = "ipopt-${version}";
src = fetchurl {
url = "http://www.coin-or.org/download/source/Ipopt/Ipopt-${version}.zip";
sha256 = "0sji4spl5dhw1s3f9y0ym09gi7d1c8wldn6wbiap4q8dq7cvklq5";
};
preConfigure = ''
export CXXDEFS="-DHAVE_RAND -DHAVE_CSTRING -DHAVE_CSTDIO"
'';
nativeBuildInputs = [ unzip ];
buildInputs = [ gfortran blas liblapack ];
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 ];
};
}