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
|
@ -1326,6 +1326,14 @@ SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
|
|||
(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 New Issue