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

30 lines
789 B
Nix
Raw Normal View History

2014-10-19 19:49:11 +02:00
{ stdenv, fetchurl, unzip, blas, liblapack, gfortran }:
stdenv.mkDerivation rec {
2015-03-29 04:03:10 +02:00
version = "3.12.1";
2014-10-19 19:49:11 +02:00
name = "ipopt-${version}";
src = fetchurl {
url = "http://www.coin-or.org/download/source/Ipopt/Ipopt-${version}.zip";
2015-03-29 04:03:10 +02:00
sha256 = "0x0wcc21d2bfs3zq8nvhva1nv7xi86wjbyixvvxvcrg2kqjlybdy";
2014-10-19 19:49:11 +02:00
};
preConfigure = ''
export CXXDEFS="-DHAVE_RAND -DHAVE_CSTRING -DHAVE_CSTDIO"
'';
2014-10-19 19:49:11 +02:00
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 ];
};
}