57bccb3cb8
* treewide: http -> https sources This updates the source urls of all top-level packages from http to https where possible. * buildtorrent: fix url and tab -> spaces
32 lines
848 B
Nix
32 lines
848 B
Nix
{ stdenv, fetchurl, unzip, openblas, gfortran }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ipopt-${version}";
|
|
version = "3.12.10";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.coin-or.org/download/source/Ipopt/Ipopt-${version}.zip";
|
|
sha256 = "004pd90knnnzcx727knb7ffkabb1ggbskb8s607bfvfgdd7wlli9";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|