nlopt: move version into the derivation itself

This commit is contained in:
André-Patrick Bubel 2018-11-19 14:09:33 +01:00
parent 0a870bfbd2
commit 6aebaa0427
No known key found for this signature in database
GPG Key ID: 28925CBA8869FF29

View File

@ -1,13 +1,8 @@
{ fetchurl, stdenv, octave ? null, cmake }:
let
version = "2.5.0";
in
stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "nlopt-${version}";
version = "2.5.0";
src = fetchurl {
url = "https://github.com/stevengj/nlopt/archive/v${version}.tar.gz";