linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / science / math / ipopt / default.nix
blobd1d7a9b9f342e766060cfd630edd564e92700e1d
1 { lib, stdenv, fetchurl, unzip, blas, lapack, gfortran }:
3 assert (!blas.isILP64) && (!lapack.isILP64);
5 stdenv.mkDerivation rec {
6   pname = "ipopt";
7   version = "3.12.13";
9   src = fetchurl {
10     url = "https://www.coin-or.org/download/source/Ipopt/Ipopt-${version}.zip";
11     sha256 = "0kzf05aypx8q5mr3sciclk926ans0yi2d2chjdxxgpi3sza609dx";
12   };
14   CXXDEFS = [ "-DHAVE_RAND" "-DHAVE_CSTRING" "-DHAVE_CSTDIO" ];
16   configureFlags = [
17     "--with-blas-lib=-lblas"
18     "--with-lapack-lib=-llapack"
19   ];
21   nativeBuildInputs = [ unzip ];
23   buildInputs = [ gfortran blas lapack ];
25   enableParallelBuilding = true;
27   meta = with lib; {
28     description = "A software package for large-scale nonlinear optimization";
29     homepage = "https://projects.coin-or.org/Ipopt";
30     license = licenses.epl10;
31     platforms = platforms.unix;
32     maintainers = with maintainers; [ abbradar ];
33   };