2014-11-01 21:23:03 +01:00
|
|
|
{ fetchurl, stdenv, octave ? null }:
|
2011-05-04 12:04:26 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-01 21:23:03 +01:00
|
|
|
name = "nlopt-2.4.2";
|
2011-05-04 12:04:26 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ab-initio.mit.edu/nlopt/${name}.tar.gz";
|
2014-11-01 21:23:03 +01:00
|
|
|
sha256 = "12cfkkhcdf4zmb6h7y6qvvdvqjs2xf9sjpa3rl3bq76px4yn76c0";
|
2011-05-04 12:04:26 +02:00
|
|
|
};
|
|
|
|
|
2014-11-01 21:23:03 +01:00
|
|
|
buildInputs = [ octave ];
|
2013-06-17 12:38:19 +02:00
|
|
|
|
|
|
|
configureFlags = "--with-cxx --enable-shared --with-pic --without-guile --without-python
|
|
|
|
--without-matlab " +
|
2014-11-01 21:23:03 +01:00
|
|
|
stdenv.lib.optionalString (octave != null) ("--with-octave " +
|
2013-06-17 12:38:19 +02:00
|
|
|
"M_INSTALL_DIR=$(out)/${octave.sitePath}/m " +
|
|
|
|
"OCT_INSTALL_DIR=$(out)/${octave.sitePath}/oct ");
|
2014-11-01 21:23:03 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://ab-initio.mit.edu/nlopt/";
|
|
|
|
description = "Free open-source library for nonlinear optimization";
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
hydraPlatforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2015-06-16 10:59:52 +02:00
|
|
|
broken = true; # cannot cope with Octave 4.x
|
2014-11-01 21:23:03 +01:00
|
|
|
};
|
|
|
|
|
2011-05-04 12:04:26 +02:00
|
|
|
}
|