2014-11-01 20:23:03 +00:00
|
|
|
{ fetchurl, stdenv, octave ? null }:
|
2011-05-04 10:04:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-01 20:23:03 +00:00
|
|
|
name = "nlopt-2.4.2";
|
2011-05-04 10:04:26 +00: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 10:04:26 +00:00
|
|
|
};
|
|
|
|
|
2014-11-01 20:23:03 +00:00
|
|
|
buildInputs = [ octave ];
|
2013-06-17 10:38:19 +00: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 10:38:19 +00:00
|
|
|
"M_INSTALL_DIR=$(out)/${octave.sitePath}/m " +
|
|
|
|
"OCT_INSTALL_DIR=$(out)/${octave.sitePath}/oct ");
|
2014-11-01 20:23:03 +00:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://ab-initio.mit.edu/nlopt/;
|
2014-11-01 20:23:03 +00:00
|
|
|
description = "Free open-source library for nonlinear optimization";
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
hydraPlatforms = stdenv.lib.platforms.linux;
|
2017-03-06 09:25:56 +00:00
|
|
|
broken = (octave != null); # cannot cope with Octave 4.x
|
2014-11-01 20:23:03 +00:00
|
|
|
};
|
|
|
|
|
2011-05-04 10:04:26 +00:00
|
|
|
}
|