nlopt: move version into the derivation itself
This commit is contained in:
@@ -1,13 +1,8 @@
|
|||||||
{ fetchurl, stdenv, octave ? null, cmake }:
|
{ fetchurl, stdenv, octave ? null, cmake }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
version = "2.5.0";
|
|
||||||
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "nlopt-${version}";
|
name = "nlopt-${version}";
|
||||||
|
version = "2.5.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/stevengj/nlopt/archive/v${version}.tar.gz";
|
url = "https://github.com/stevengj/nlopt/archive/v${version}.tar.gz";
|
||||||
|
|||||||
Reference in New Issue
Block a user