forked from mirrors/nixpkgs
ab050719ba
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/ipopt/versions
33 lines
848 B
Nix
33 lines
848 B
Nix
{ stdenv, fetchurl, unzip, openblas, gfortran }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ipopt-${version}";
|
|
version = "3.12.11";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.coin-or.org/download/source/Ipopt/Ipopt-${version}.zip";
|
|
sha256 = "1qihlwwqsqpbwpp6zqfa7nrmb55dndppzmdy98897aiknaa2650h";
|
|
};
|
|
|
|
CXXDEFS = [ "-DHAVE_RAND" "-DHAVE_CSTRING" "-DHAVE_CSTDIO" ];
|
|
|
|
configureFlags = [
|
|
"--with-blas-lib=-lopenblas"
|
|
"--with-lapack-lib=-lopenblas"
|
|
];
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildInputs = [ gfortran openblas ];
|
|
|
|
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 ];
|
|
};
|
|
}
|