[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/06: gnu: youtube-viewer: Refer to youtube-dl.
From: |
guix-commits |
Subject: |
06/06: gnu: youtube-viewer: Refer to youtube-dl. |
Date: |
Sun, 16 Jun 2019 21:05:03 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 58637415bedb8a91d916ab6ed6f318f7b7023c00
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Mon Jun 17 03:02:34 2019 +0200
gnu: youtube-viewer: Refer to youtube-dl.
* gnu/packages/video.scm (youtube-viewer)[inputs]: Add youtube-dl.
[arguments]: Add ‘refer-to-inputs’ phase.
---
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 d1fdd12..760c057 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1627,7 +1627,10 @@ audio, images) from the Web. It can use either mpv or
vlc for playback.")
("perl-libwww" ,perl-libwww)
("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
("perl-mozilla-ca" ,perl-mozilla-ca)
- ("perl-unicode-linebreak" ,perl-unicode-linebreak)))
+ ("perl-unicode-linebreak" ,perl-unicode-linebreak)
+
+ ;; Some videos play without youtube-dl, but others silently fail to.
+ ("youtube-dl" ,youtube-dl)))
(arguments
`(#:modules ((guix build perl-build-system)
(guix build utils)
@@ -1635,6 +1638,13 @@ audio, images) from the Web. It can use either mpv or
vlc for playback.")
#:module-build-flags '("--gtk")
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'refer-to-inputs
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "lib/WWW/YoutubeViewer.pm"
+ (("'youtube-dl'")
+ (format #f "'~a/bin/youtube-dl'"
+ (assoc-ref inputs "youtube-dl"))))
+ #t))
(add-after 'install 'install-desktop
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
- branch master updated (562a2a4 -> 5863741), guix-commits, 2019/06/16
- 05/06: gnu: radare2: Download over HTTPS., guix-commits, 2019/06/16
- 01/06: gnu: suil: Update to 0.10.4., guix-commits, 2019/06/16
- 03/06: gnu: nsd: Update to 4.2.0., guix-commits, 2019/06/16
- 04/06: gnu: radare2: Don't use NAME in source URI., guix-commits, 2019/06/16
- 02/06: gnu: knot: Update to 2.8.2., guix-commits, 2019/06/16
- 06/06: gnu: youtube-viewer: Refer to youtube-dl.,
guix-commits <=