mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: mpv: Set absolute path to 'youtube-dl'.
* gnu/packages/video.scm (mpv)[arguments]: Add phase 'patch-paths' to substitute in the absolute path to 'youtube-dl'. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
b227457f62
commit
3df69aaf63
1 changed files with 8 additions and 0 deletions
|
@ -1326,6 +1326,14 @@ (define-public mpv
|
|||
(arguments
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after
|
||||
'unpack 'patch-paths
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((ytdl (assoc-ref inputs "youtube-dl")))
|
||||
(substitute* "player/lua/ytdl_hook.lua"
|
||||
(("\"youtube-dl\",")
|
||||
(string-append "\"" ytdl "/bin/youtube-dl\",")))
|
||||
#t)))
|
||||
(add-before
|
||||
'configure 'setup-waf
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
|
|
Loading…
Reference in a new issue