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

33 lines
848 B
Nix
Raw Normal View History

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