From: Brice Waegeneire <brice@waegenei.re>
To: 40060@debbugs.gnu.org
Subject: [bug#40060] [PATCH v3] gnu: youtube-dl: Add 'ffmpeg' as input.
Date: Wed, 1 Apr 2020 15:01:52 +0200 [thread overview]
Message-ID: <20200401130152.1871-1-brice@waegenei.re> (raw)
In-Reply-To: <20200314143418.13963-1-brice@waegenei.re>
* 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
next prev parent reply other threads:[~2020-04-01 13:03 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-14 14:34 [bug#40060] [PATCH 0/2] youtube-dl add ffmpeg, pycryptodome and zsh-completion Brice Waegeneire
2020-03-14 14:42 ` [bug#40060] [PATCH 1/2] gnu: youtube-dl: Use ffmpeg and pycryptodome Brice Waegeneire
2020-03-14 17:21 ` Leo Famulari
2020-03-14 17:39 ` Brice Waegeneire
2020-03-14 17:47 ` Leo Famulari
2020-03-14 22:20 ` Tobias Geerinckx-Rice via Guix-patches via
2020-03-14 22:17 ` Tobias Geerinckx-Rice via Guix-patches via
2020-03-15 17:25 ` Leo Famulari
2020-03-17 9:06 ` Brice Waegeneire
2020-03-14 14:42 ` [bug#40060] [PATCH 2/2] gnu: youtube-dl: Add zsh completion Brice Waegeneire
2020-03-23 17:15 ` [bug#40060] [PATCH v2 0/2] youtube-dl add ffmpeg and zsh-completion Brice Waegeneire
2020-03-23 17:15 ` [bug#40060] [PATCH v2 1/2] gnu: youtube-dl: Add 'ffmpeg' as input Brice Waegeneire
2020-03-23 17:15 ` [bug#40060] [PATCH v2 2/2] gnu: youtube-dl: Add zsh completion Brice Waegeneire
2020-03-23 19:28 ` [bug#40060] [PATCH v2 0/2] youtube-dl add ffmpeg and zsh-completion Mathieu Othacehe
2020-03-23 20:23 ` Brice Waegeneire
2020-03-23 20:43 ` Mathieu Othacehe
2020-04-01 13:01 ` Brice Waegeneire [this message]
2020-04-01 13:40 ` [bug#40060] [PATCH v3] gnu: youtube-dl: Add 'ffmpeg' as input Tobias Geerinckx-Rice via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200401130152.1871-1-brice@waegenei.re \
--to=brice@waegenei.re \
--cc=40060@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).