From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:33343) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJd1K-0000Gp-UA for guix-patches@gnu.org; Wed, 01 Apr 2020 09:03:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJd1J-00048l-PR for guix-patches@gnu.org; Wed, 01 Apr 2020 09:03:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJd1J-00048f-LV for guix-patches@gnu.org; Wed, 01 Apr 2020 09:03:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJd1J-0007vx-I1 for guix-patches@gnu.org; Wed, 01 Apr 2020 09:03:01 -0400 Subject: [bug#40060] [PATCH v3] gnu: youtube-dl: Add 'ffmpeg' as input. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:33212) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJd0K-00005b-Ve for guix-patches@gnu.org; Wed, 01 Apr 2020 09:02:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJd0J-00032J-H1 for guix-patches@gnu.org; Wed, 01 Apr 2020 09:02:00 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:38373) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jJd0J-00031W-AE for guix-patches@gnu.org; Wed, 01 Apr 2020 09:01:59 -0400 Received: from localhost (luy13-1-78-237-113-178.fbx.proxad.net [78.237.113.178]) (Authenticated sender: brice@waegenei.re) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 8E8C240010 for ; Wed, 1 Apr 2020 13:01:56 +0000 (UTC) From: Brice Waegeneire Date: Wed, 1 Apr 2020 15:01:52 +0200 Message-Id: <20200401130152.1871-1-brice@waegenei.re> In-Reply-To: <20200314143418.13963-1-brice@waegenei.re> References: <20200314143418.13963-1-brice@waegenei.re> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40060@debbugs.gnu.org * gnu/packages/video.scm (youtube-dl)[arguments]: Add phase wrap-executable. [inputs]: Add ffmpeg. --- This version is rebased on top of master and the commit adding zsh completion has been removed from the patch set since it has already been merged. gnu/packages/video.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 03796fd770..6ad46fb9fe 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1680,7 +1680,17 @@ To load this plugin, specify the following option when starting mpv: (mkdir-p zsh) (copy-file "youtube-dl.zsh" (string-append zsh "/_youtube-dl")) - #t)))))) + #t))) + (add-after 'install 'wrap-executable + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (ffmpeg (assoc-ref inputs "ffmpeg"))) + (wrap-program (string-append out "/bin/youtube-dl") + `("PATH" ":" prefix + ,(list (string-append ffmpeg "/bin"))))) + #t))))) + (inputs + `(("ffmpeg" ,ffmpeg))) (synopsis "Download videos from YouTube.com and other sites") (description "Youtube-dl is a small command-line program to download videos from -- 2.25.1