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>
master
Timo Eisenmann 2019-03-28 21:00:54 +01:00 committed by Ludovic Courtès
parent b227457f62
commit 3df69aaf63
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 8 additions and 0 deletions

View File

@ -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)