2013-06-17 10:38:19 +00:00
|
|
|
{ fetchurl, stdenv
|
|
|
|
, withOctave ? true, octave ? null}:
|
2011-05-04 10:04:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-06-17 10:38:19 +00:00
|
|
|
name = "nlopt-2.3";
|
2011-05-04 10:04:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ab-initio.mit.edu/nlopt/${name}.tar.gz";
|
2013-06-17 10:38:19 +00:00
|
|
|
sha256 = "1iw2cjgypyqz779f47fz0nmifbrvk4zs4rxi1ibk36f4ly3wg6p6";
|
2011-05-04 10:04:26 +00:00
|
|
|
};
|
|
|
|
|
2013-06-17 10:38:19 +00:00
|
|
|
buildInputs = stdenv.lib.optional withOctave octave;
|
|
|
|
|
|
|
|
configureFlags = "--with-cxx --enable-shared --with-pic --without-guile --without-python
|
|
|
|
--without-matlab " +
|
|
|
|
stdenv.lib.optionalString withOctave ("--with-octave " +
|
|
|
|
"M_INSTALL_DIR=$(out)/${octave.sitePath}/m " +
|
|
|
|
"OCT_INSTALL_DIR=$(out)/${octave.sitePath}/oct ");
|
2011-05-04 10:04:26 +00:00
|
|
|
}
|