ipopt: cleanup (#453929)
This commit is contained in:
@@ -6,16 +6,13 @@
|
||||
blas,
|
||||
lapack,
|
||||
gfortran,
|
||||
enableAMPL ? true,
|
||||
libamplsolver,
|
||||
enableMUMPS ? true,
|
||||
mumps,
|
||||
mpi,
|
||||
enableSPRAL ? true,
|
||||
spral,
|
||||
libamplsolver,
|
||||
}:
|
||||
|
||||
assert (!blas.isILP64) && (!lapack.isILP64);
|
||||
assert !mumps.mpiSupport;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ipopt";
|
||||
@@ -28,47 +25,39 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-85fUBMwQtG+RWQYk9YzdZYK3CYcDKgWroo4blhVWBzE=";
|
||||
};
|
||||
|
||||
CXXDEFS = [
|
||||
"-DHAVE_RAND"
|
||||
"-DHAVE_CSTRING"
|
||||
"-DHAVE_CSTDIO"
|
||||
outputs = [
|
||||
"bin"
|
||||
"dev"
|
||||
"out"
|
||||
"doc"
|
||||
];
|
||||
|
||||
configureFlags =
|
||||
lib.optionals enableAMPL [
|
||||
"--with-asl-cflags=-I${libamplsolver}/include"
|
||||
"--with-asl-lflags=-lamplsolver"
|
||||
]
|
||||
++ lib.optionals enableMUMPS [
|
||||
"--with-mumps-cflags=-I${mumps}/include"
|
||||
"--with-mumps-lflags=-ldmumps"
|
||||
]
|
||||
++ lib.optionals enableSPRAL [
|
||||
"--with-spral-cflags=-I${spral}/include"
|
||||
"--with-spral-lflags=-lspral"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
gfortran
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
blas
|
||||
lapack
|
||||
]
|
||||
++ lib.optionals enableAMPL [ libamplsolver ]
|
||||
++ lib.optionals enableMUMPS [
|
||||
mumps
|
||||
mpi
|
||||
]
|
||||
++ lib.optionals enableSPRAL [ spral ];
|
||||
spral
|
||||
libamplsolver
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--with-mumps-cflags=-I${lib.getDev mumps}/include/mumps_seq"
|
||||
"--with-mumps-lflags=-ldmumps"
|
||||
"--with-spral-lflags=-lspral"
|
||||
"--with-asl-lflags=-lamplsolver"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
description = "Software package for large-scale nonlinear optimization";
|
||||
homepage = "https://projects.coin-or.org/Ipopt";
|
||||
license = lib.licenses.epl10;
|
||||
license = lib.licenses.epl20;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [
|
||||
nim65s
|
||||
|
||||
Reference in New Issue
Block a user