1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/development/libraries/nlopt/default.nix

20 lines
606 B
Nix
Raw Normal View History

2013-06-17 11:38:19 +01:00
{ fetchurl, stdenv
, withOctave ? true, octave ? null}:
stdenv.mkDerivation rec {
2013-06-17 11:38:19 +01:00
name = "nlopt-2.3";
src = fetchurl {
url = "http://ab-initio.mit.edu/nlopt/${name}.tar.gz";
2013-06-17 11:38:19 +01:00
sha256 = "1iw2cjgypyqz779f47fz0nmifbrvk4zs4rxi1ibk36f4ly3wg6p6";
};
2013-06-17 11:38:19 +01: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 ");
}