From 57d591ec7f386453444f0b2e9765b336cea5f95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 22 May 2018 11:01:55 +0200 Subject: [PATCH] youtube-dl: use toPythonApplication (#40831) --- pkgs/tools/misc/youtube-dl/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/misc/youtube-dl/default.nix b/pkgs/tools/misc/youtube-dl/default.nix index b639397388b4..7e503f326fd5 100644 --- a/pkgs/tools/misc/youtube-dl/default.nix +++ b/pkgs/tools/misc/youtube-dl/default.nix @@ -1,4 +1,4 @@ -{ stdenv, targetPlatform, fetchurl, buildPythonApplication +{ stdenv, targetPlatform, fetchurl, buildPythonPackage , zip, ffmpeg, rtmpdump, phantomjs2, atomicparsley, pycryptodome, pandoc # Pandoc is required to build the package's man page. Release tarballs contain a # formatted man page already, though, it will still be installed. We keep the @@ -13,7 +13,7 @@ , makeWrapper }: with stdenv.lib; -buildPythonApplication rec { +buildPythonPackage rec { pname = "youtube-dl"; version = "2018.05.18"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 548ac948c9e6..c7d4ece62567 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15089,7 +15089,6 @@ with pkgs; bombono = callPackage ../applications/video/bombono {}; bomi = libsForQt5.callPackage ../applications/video/bomi { - youtube-dl = pythonPackages.youtube-dl; pulseSupport = config.pulseaudio or true; ffmpeg = ffmpeg_2; }; @@ -17045,7 +17044,6 @@ with pkgs; mpv = callPackage ../applications/video/mpv rec { inherit (luaPackages) luasocket; - youtube-dl = pythonPackages.youtube-dl; waylandSupport = stdenv.isLinux; alsaSupport = !stdenv.isDarwin; pulseSupport = !stdenv.isDarwin; @@ -18970,7 +18968,9 @@ with pkgs; yoshimi = callPackage ../applications/audio/yoshimi { }; - inherit (pythonPackages) youtube-dl; + youtube-dl = with pythonPackages; toPythonApplication youtube-dl; + + youtube-dl-light = with pythonPackages; toPythonApplication youtube-dl-light; youtube-viewer = perlPackages.WWWYoutubeViewer;