[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: youtube-dl: Add 'ffmpeg' as input.
From: |
guix-commits |
Subject: |
01/02: gnu: youtube-dl: Add 'ffmpeg' as input. |
Date: |
Mon, 23 Mar 2020 15:27:07 -0400 (EDT) |
mothacehe pushed a commit to branch master
in repository guix.
commit 4233e74b39635d5ef4dde204ecc26dcc894d9467
Author: Brice Waegeneire <address@hidden>
AuthorDate: Mon Mar 23 18:15:01 2020 +0100
gnu: youtube-dl: Add 'ffmpeg' as input.
* gnu/packages/video.scm (youtube-dl)[arguments]: Add phase
wrap-executable.
[inputs]: Add ffmpeg.
Signed-off-by: Mathieu Othacehe <address@hidden>
---
gnu/packages/video.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 38e9d36..3b64c43 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -37,6 +37,7 @@
;;; Copyright © 2019 Riku Viitanen <address@hidden>
;;; Copyright © 2020 Oleg Pykhalov <address@hidden>
;;; Copyright © 2020 Josh Holland <address@hidden>
+;;; Copyright © 2020 Brice Waegeneire <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1671,7 +1672,17 @@ To load this plugin, specify the following option when
starting mpv:
(string-append "'" prefix "/etc/"))
(("'share/")
(string-append "'" prefix "/share/")))
- #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