all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#35033] [PATCH] gnu: mpv: Set absolute path to 'youtube-dl'.
@ 2019-03-28 20:00 Timo Eisenmann
  2019-04-03 20:24 ` Ludovic Courtès
  2019-04-03 20:36 ` [bug#35033] " Arun Isaac
  0 siblings, 2 replies; 5+ messages in thread
From: Timo Eisenmann @ 2019-03-28 20:00 UTC (permalink / raw)
  To: 35033; +Cc: Timo Eisenmann

* gnu/packages/video.scm (mpv)[arguments]: Add phase 'patch-paths' to
substitute in the absolute path to 'youtube-dl'.
---
 gnu/packages/video.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 55a1931530..3c5ade55a3 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1326,6 +1326,13 @@ 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\","))))))
          (add-before
           'configure 'setup-waf
           (lambda* (#:key inputs #:allow-other-keys)
-- 
2.21.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-08  8:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-28 20:00 [bug#35033] [PATCH] gnu: mpv: Set absolute path to 'youtube-dl' Timo Eisenmann
2019-04-03 20:24 ` Ludovic Courtès
2019-04-03 22:48   ` Timo Eisenmann
2019-04-08  8:29     ` bug#35033: " Ludovic Courtès
2019-04-03 20:36 ` [bug#35033] " Arun Isaac

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.