mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 21:33:49 +00:00
cc9fc2bdcd
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. These checks were done: - built on NixOS - 0 of 0 passed binary check by having a zero exit code. - 0 of 0 passed binary check by having the new version present in output. - found 3.12.10 with grep in /nix/store/6748l35g9dz7z77wqwal99ylrhn87liv-ipopt-3.12.10 - directory tree listing: https://gist.github.com/5da4bb4853af0913caca26e8cbc87666 - du listing: https://gist.github.com/c4d8373c7d9a61f39479151fdffa99cb
33 lines
847 B
Nix
33 lines
847 B
Nix
{ stdenv, fetchurl, unzip, openblas, gfortran }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ipopt-${version}";
|
|
version = "3.12.10";
|
|
|
|
src = fetchurl {
|
|
url = "http://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 ];
|
|
};
|
|
}
|