From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:53218) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jD80G-0006TP-14 for guix-patches@gnu.org; Sat, 14 Mar 2020 10:43:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jD80F-0001Ge-2P for guix-patches@gnu.org; Sat, 14 Mar 2020 10:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56081) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jD80E-0001FI-VP for guix-patches@gnu.org; Sat, 14 Mar 2020 10:43:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jD80E-0001qB-Ty for guix-patches@gnu.org; Sat, 14 Mar 2020 10:43:02 -0400 Subject: [bug#40060] [PATCH 2/2] gnu: youtube-dl: Add zsh completion Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:52972) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jD7zo-0006S0-85 for guix-patches@gnu.org; Sat, 14 Mar 2020 10:42:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jD7zm-0006jK-IU for guix-patches@gnu.org; Sat, 14 Mar 2020 10:42:35 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:42393) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jD7zj-0006aB-Gz for guix-patches@gnu.org; Sat, 14 Mar 2020 10:42:32 -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 96EB540005 for ; Sat, 14 Mar 2020 14:42:29 +0000 (UTC) From: Brice Waegeneire Date: Sat, 14 Mar 2020 15:42:21 +0100 Message-Id: <20200314144221.17112-2-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 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 4ca037532f..38f376c7e4 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1582,6 +1582,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.0