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:
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

View file

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