mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: youtube-dl: Refer to ffmpeg.
Addresses <https://issues.guix.gnu.org/43418>. * gnu/packages/video.scm (youtube-dl)[inputs]: Add ffmpeg. [arguments]: Fall back to input ffmpeg instead of searching $PATH.
This commit is contained in:
parent
5674ea45a3
commit
7194b63833
1 changed files with 12 additions and 0 deletions
|
@ -2184,6 +2184,16 @@ (define-public youtube-dl
|
|||
;; 'youtube-dl.bash-completion'.
|
||||
`(#:tests? #f ; Many tests fail. The test suite can be run with pytest.
|
||||
#:phases (modify-phases %standard-phases
|
||||
(add-after 'unpack 'default-to-the-ffmpeg-input
|
||||
(lambda _
|
||||
;; See <https://issues.guix.gnu.org/43418#5>.
|
||||
;; ffmpeg is big but required to request free formats
|
||||
;; from, e.g., YouTube so pull it in unconditionally.
|
||||
;; Continue respecting the --ffmpeg-location argument.
|
||||
(substitute* "youtube_dl/postprocessor/ffmpeg.py"
|
||||
(("\\.get\\('ffmpeg_location'\\)" match)
|
||||
(format #f "~a or '~a'" match (which "ffmpeg"))))
|
||||
#t))
|
||||
(add-before 'install 'fix-the-data-directories
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((prefix (assoc-ref outputs "out")))
|
||||
|
@ -2207,6 +2217,8 @@ (define-public youtube-dl
|
|||
(copy-file "youtube-dl.zsh"
|
||||
(string-append zsh "/_youtube-dl"))
|
||||
#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
|
||||
|
|
Loading…
Reference in a new issue