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

35 lines
885 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, unzip, blas, lapack, gfortran }:
assert (!blas.isILP64) && (!lapack.isILP64);
2014-10-19 17:49:11 +00:00
stdenv.mkDerivation rec {
pname = "ipopt";
version = "3.12.13";
2014-10-19 17:49:11 +00:00
src = fetchurl {
url = "https://www.coin-or.org/download/source/Ipopt/Ipopt-${version}.zip";
sha256 = "0kzf05aypx8q5mr3sciclk926ans0yi2d2chjdxxgpi3sza609dx";
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=-lblas"
"--with-lapack-lib=-llapack"
2015-06-12 12:26:47 +00:00
];
2014-10-19 17:49:11 +00:00
nativeBuildInputs = [ unzip ];
buildInputs = [ gfortran blas lapack ];
2014-10-19 17:49:11 +00:00
enableParallelBuilding = true;
meta = with lib; {
2014-10-19 17:49:11 +00:00
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 ];
};
}