2014-11-01 20:23:03 +00:00
|
|
|
{ fetchurl, stdenv, octave ? null }:
|
2011-05-04 11:04:26 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-01 20:23:03 +00:00
|
|
|
name = "nlopt-2.4.2";
|
2011-05-04 11:04:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ab-initio.mit.edu/nlopt/${name}.tar.gz";
|
2014-11-01 20:23:03 +00:00
|
|
|
sha256 = "12cfkkhcdf4zmb6h7y6qvvdvqjs2xf9sjpa3rl3bq76px4yn76c0";
|
2011-05-04 11:04:26 +01:00
|
|
|
};
|
|
|
|
|
2014-11-01 20:23:03 +00:00
|
|
|
buildInputs = [ octave ];
|
2013-06-17 11:38:19 +01:00
|
|
|
|
|
|
|
configureFlags = "--with-cxx --enable-shared --with-pic --without-guile --without-python
|
|
|
|
--without-matlab " +
|
2014-11-01 20:23:03 +00:00
|
|
|
stdenv.lib.optionalString (octave != null) ("--with-octave " +
|
2013-06-17 11:38:19 +01:00
|
|
|
"M_INSTALL_DIR=$(out)/${octave.sitePath}/m " +
|
|
|
|
"OCT_INSTALL_DIR=$(out)/${octave.sitePath}/oct ");
|
2014-11-01 20:23:03 +00: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 09:59:52 +01:00
|
|
|
broken = true; # cannot cope with Octave 4.x
|
2014-11-01 20:23:03 +00:00
|
|
|
};
|
|
|
|
|
2011-05-04 11:04:26 +01:00
|
|
|
}
|