mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 15:22:18 -05:00
gnu: youtube-viewer: Refer to youtube-dl.
* gnu/packages/video.scm (youtube-viewer)[inputs]: Add youtube-dl. [arguments]: Add ‘refer-to-inputs’ phase.
This commit is contained in:
parent
a157fb2723
commit
58637415be
1 changed files with 11 additions and 1 deletions
|
@ -1627,7 +1627,10 @@ (define-public youtube-viewer
|
|||
("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 @@ (define-public youtube-viewer
|
|||
#: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"))
|
||||
|
|
Loading…
Reference in a new issue