3
0
Fork 0
forked from mirrors/nixpkgs

nlopt: 2.6.0 -> 2.6.1

Changelog: https://github.com/stevengj/nlopt/releases/tag/v2.6.1

Build is not broken anymore with Octave 4.x since
https://github.com/stevengj/nlopt/pull/245
This commit is contained in:
Renaud 2019-04-23 20:50:23 +02:00 committed by Frederik Rietdijk
parent fea6499091
commit 5c5b887f1e

View file

@ -1,12 +1,14 @@
{ fetchurl, stdenv, octave ? null, cmake }:
{ stdenv, fetchFromGitHub, cmake, octave ? null }:
stdenv.mkDerivation rec {
name = "nlopt-${version}";
version = "2.6.0";
pname = "nlopt";
version = "2.6.1";
src = fetchurl {
url = "https://github.com/stevengj/nlopt/archive/v${version}.tar.gz";
sha256 = "1asiyilhmx8abshk0d2aia6ykgs4czhg22xcm9z15wgmyp6pfc51";
src = fetchFromGitHub {
owner = "stevengj";
repo = pname;
rev = "v${version}";
sha256 = "1k6x14lgyfhfqpbs7xx8mrgklp8l6jkkcs39zgi2sj3kg6n0hdc9";
};
nativeBuildInputs = [ cmake ];
@ -30,7 +32,6 @@ stdenv.mkDerivation rec {
description = "Free open-source library for nonlinear optimization";
license = stdenv.lib.licenses.lgpl21Plus;
hydraPlatforms = stdenv.lib.platforms.linux;
broken = (octave != null); # cannot cope with Octave 4.x
};
}