GNU bug report logs -
#40060
[PATCH 0/2] youtube-dl add ffmpeg, pycryptodome and zsh-completion
Previous Next
Reported by: Brice Waegeneire <brice <at> waegenei.re>
Date: Sat, 14 Mar 2020 14:35:01 UTC
Severity: normal
Tags: patch
Done: Brice Waegeneire <brice <at> waegenei.re>
Bug is archived. No further changes may be made.
Full log
Message #38 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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
This bug report was last modified 5 years and 47 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.