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

33 lines
847 B
Nix
Raw Normal View History

2015-06-12 12:26:47 +00:00
{ stdenv, fetchurl, unzip, openblas, gfortran }:
2014-10-19 17:49:11 +00:00
stdenv.mkDerivation rec {
name = "ipopt-${version}";
version = "3.12.10";
2014-10-19 17:49:11 +00:00
src = fetchurl {
url = "http://www.coin-or.org/download/source/Ipopt/Ipopt-${version}.zip";
sha256 = "004pd90knnnzcx727knb7ffkabb1ggbskb8s607bfvfgdd7wlli9";
2014-10-19 17:49:11 +00:00
};
2016-08-13 00:08:46 +00:00
CXXDEFS = [ "-DHAVE_RAND" "-DHAVE_CSTRING" "-DHAVE_CSTDIO" ];
2015-06-12 12:26:47 +00:00
configureFlags = [
"--with-blas-lib=-lopenblas"
"--with-lapack-lib=-lopenblas"
];
2014-10-19 17:49:11 +00:00
nativeBuildInputs = [ unzip ];
2015-06-12 12:26:47 +00:00
buildInputs = [ gfortran openblas ];
2014-10-19 17:49:11 +00:00
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "A software package for large-scale nonlinear optimization";
homepage = https://projects.coin-or.org/Ipopt;
2014-10-19 17:49:11 +00:00
license = licenses.epl10;
platforms = platforms.unix;
maintainers = with maintainers; [ abbradar ];
};
}