diff options
author | André-Patrick Bubel <code@andre-bubel.de> | 2018-11-19 14:09:33 +0100 |
---|---|---|
committer | André-Patrick Bubel <code@andre-bubel.de> | 2018-11-19 14:16:22 +0100 |
commit | 6aebaa04276668c1c2126b8e4491f23293a64624 (patch) | |
tree | 410598099a7319e4f3a818cc533aa3712981ce59 | |
parent | 0a870bfbd26e53e154c7b4d45e21e849ca19f3cf (diff) | |
download | nixpkgs-6aebaa04276668c1c2126b8e4491f23293a64624.tar nixpkgs-6aebaa04276668c1c2126b8e4491f23293a64624.tar.gz nixpkgs-6aebaa04276668c1c2126b8e4491f23293a64624.tar.bz2 nixpkgs-6aebaa04276668c1c2126b8e4491f23293a64624.tar.lz nixpkgs-6aebaa04276668c1c2126b8e4491f23293a64624.tar.xz nixpkgs-6aebaa04276668c1c2126b8e4491f23293a64624.tar.zst nixpkgs-6aebaa04276668c1c2126b8e4491f23293a64624.zip |
nlopt: move version into the derivation itself
-rw-r--r-- | pkgs/development/libraries/nlopt/default.nix | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/pkgs/development/libraries/nlopt/default.nix b/pkgs/development/libraries/nlopt/default.nix index 48b7acf2896..bbbc818db63 100644 --- a/pkgs/development/libraries/nlopt/default.nix +++ b/pkgs/development/libraries/nlopt/default.nix @@ -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"; |