mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-03 16:57:55 +01: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
|
(arguments
|
||||||
'(#:phases
|
'(#:phases
|
||||||
(modify-phases %standard-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
|
(add-before
|
||||||
'configure 'setup-waf
|
'configure 'setup-waf
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
|
Loading…
Reference in a new issue