mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 02:55:39 +00:00
nlopt: update from 2.4.2 to 2.5.0
This commit is contained in:
parent
9b63cc6313
commit
9f9fc7ae15
@ -1,13 +1,20 @@
|
|||||||
{ fetchurl, stdenv, octave ? null }:
|
{ fetchurl, stdenv, octave ? null, cmake }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "nlopt-2.4.2";
|
|
||||||
|
version = "2.5.0";
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "nlopt-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://ab-initio.mit.edu/nlopt/${name}.tar.gz";
|
url = "https://github.com/stevengj/nlopt/archive/v${version}.tar.gz";
|
||||||
sha256 = "12cfkkhcdf4zmb6h7y6qvvdvqjs2xf9sjpa3rl3bq76px4yn76c0";
|
sha256 = "1bmlsdzkw8xbigiihffyb0kdaqbyfn7dr8s5pdgavy7z05bpmpf6";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ octave ];
|
buildInputs = [ octave ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
@ -24,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://ab-initio.mit.edu/nlopt/;
|
homepage = "https://nlopt.readthedocs.io/en/latest/";
|
||||||
description = "Free open-source library for nonlinear optimization";
|
description = "Free open-source library for nonlinear optimization";
|
||||||
license = stdenv.lib.licenses.lgpl21Plus;
|
license = stdenv.lib.licenses.lgpl21Plus;
|
||||||
hydraPlatforms = stdenv.lib.platforms.linux;
|
hydraPlatforms = stdenv.lib.platforms.linux;
|
||||||
|
Loading…
Reference in New Issue
Block a user