From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:47673) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGQgF-0001fu-AB for guix-patches@gnu.org; Mon, 23 Mar 2020 13:16:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGQgE-0007tE-Cg for guix-patches@gnu.org; Mon, 23 Mar 2020 13:16:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47490) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jGQgE-0007t6-9u for guix-patches@gnu.org; Mon, 23 Mar 2020 13:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jGQgE-0001Ed-5W for guix-patches@gnu.org; Mon, 23 Mar 2020 13:16:02 -0400 Subject: [bug#40060] [PATCH v2 2/2] gnu: youtube-dl: Add zsh completion. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:47469) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGQfS-0000iZ-Rt for guix-patches@gnu.org; Mon, 23 Mar 2020 13:15:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGQfR-0007Rr-Ml for guix-patches@gnu.org; Mon, 23 Mar 2020 13:15:14 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:48963) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jGQfR-0007P6-GS for guix-patches@gnu.org; Mon, 23 Mar 2020 13:15:13 -0400 Received: from localhost (luy13-1-78-237-113-178.fbx.proxad.net [78.237.113.178]) (Authenticated sender: brice@waegenei.re) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 0BFB71C0003 for ; Mon, 23 Mar 2020 17:15:11 +0000 (UTC) From: Brice Waegeneire Date: Mon, 23 Mar 2020 18:15:02 +0100 Message-Id: <20200323171502.3147-3-brice@waegenei.re> In-Reply-To: <20200323171502.3147-1-brice@waegenei.re> References: <20200314143418.13963-1-brice@waegenei.re> <20200323171502.3147-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 install-completion. --- gnu/packages/video.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 3b64c435b7..cb575a7375 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1673,6 +1673,15 @@ To load this plugin, specify the following option when starting mpv: (("'share/") (string-append "'" prefix "/share/"))) #t))) + (add-after 'install 'install-completion + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (zsh (string-append out + "/share/zsh/site-functions"))) + (mkdir-p zsh) + (copy-file "youtube-dl.zsh" + (string-append zsh "/_youtube-dl")) + #t))) (add-after 'install 'wrap-executable (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) -- 2.25.1