{ stdenv, fetchurl, unzip, openblas, gfortran }: stdenv.mkDerivation rec { name = "ipopt-${version}"; version = "3.12.6"; src = fetchurl { url = "http://www.coin-or.org/download/source/Ipopt/Ipopt-${version}.zip"; sha256 = "0lx09h1757s5jppwnxwblcjk0biqjxy7yaf3z4vfqbl4rl93avs0"; }; 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 ]; }; }