From af8c1f33688b6c05822269af44996839f758b08c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 5 Jan 2016 20:08:53 +0100 Subject: [PATCH] youtube-dl: take advantage of the improved getVersion function --- pkgs/tools/misc/youtube-dl/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/youtube-dl/default.nix b/pkgs/tools/misc/youtube-dl/default.nix index 76db7b2ae4f4..09328c8d8aba 100644 --- a/pkgs/tools/misc/youtube-dl/default.nix +++ b/pkgs/tools/misc/youtube-dl/default.nix @@ -1,5 +1,6 @@ { stdenv, fetchurl, buildPythonPackage, makeWrapper, ffmpeg, zip -, pandoc ? null }: +, pandoc ? null +}: # Pandoc is required to build the package's man page. Release tarballs # contain a formatted man page already, though, so it's fine to pass @@ -13,7 +14,7 @@ buildPythonPackage rec { name = "youtube-dl-2016.01.01"; src = fetchurl { - url = "http://yt-dl.org/downloads/${(builtins.parseDrvName name).version}/${name}.tar.gz"; + url = "http://yt-dl.org/downloads/${stdenv.lib.getVersion name}/${name}.tar.gz"; sha256 = "0b0pk8h2iswdiyf65c0zcwcad9dm2hid67fnfafj7d3ikp4kfbvk"; };