git.iko.soy/typeable/nixpkgs
on master help sign in
nlopt: update to version 2.4.2 and add a proper meta section
commit71e9609cfe267b123616387d208d56b7b49b8dc9 authorPeter Simons <simons@cryp.to> dateSat 1 Nov 2014, 21:23 (12 years ago) parent5258211
1 file changed+15−6
pkgs/development/libraries/nlopt/default.nix+15−6
pkgs/development/libraries/nlopt/default.nix+15−6
@@ -1,19 +1,28 @@
1−{ fetchurl, stdenv
2−, withOctave ? true, octave ? null}:
1+{ fetchurl, stdenv, octave ? null }:
32
43stdenv.mkDerivation rec {
5− name = "nlopt-2.3";
4+ name = "nlopt-2.4.2";
65
76 src = fetchurl {
87 url = "http://ab-initio.mit.edu/nlopt/${name}.tar.gz";
9− sha256 = "1iw2cjgypyqz779f47fz0nmifbrvk4zs4rxi1ibk36f4ly3wg6p6";
8+ sha256 = "12cfkkhcdf4zmb6h7y6qvvdvqjs2xf9sjpa3rl3bq76px4yn76c0";
109 };
1110
12− buildInputs = stdenv.lib.optional withOctave octave;
11+ buildInputs = [ octave ];
1312
1413 configureFlags = "--with-cxx --enable-shared --with-pic --without-guile --without-python
1514 --without-matlab " +
16− stdenv.lib.optionalString withOctave ("--with-octave " +
15+ stdenv.lib.optionalString (octave != null) ("--with-octave " +
1716 "M_INSTALL_DIR=$(out)/${octave.sitePath}/m " +
1817 "OCT_INSTALL_DIR=$(out)/${octave.sitePath}/oct ");
18+
19+ meta = {
20+ homepage = "http://ab-initio.mit.edu/nlopt/";
21+ description = "Free open-source library for nonlinear optimization";
22+ license = stdenv.lib.licenses.lgpl21Plus;
23+
24+ hydraPlatforms = stdenv.lib.platforms.linux;
25+ maintainers = [ stdenv.lib.maintainers.simons ];
26+ };
27+
1928}