* [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
* [bug#35033] [PATCH] gnu: mpv: Set absolute path to 'youtube-dl'.
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-03 20:36 ` [bug#35033] " Arun Isaac
1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2019-04-03 20:24 UTC (permalink / raw)
To: Timo Eisenmann; +Cc: 35033
Hi Timo,
Timo Eisenmann <eisenmann@fn.de> skribis:
> * gnu/packages/video.scm (mpv)[arguments]: Add phase 'patch-paths' to
> substitute in the absolute path to 'youtube-dl'.
I think it’s a case where it may be more appropriate to look for
‘youtube-dl’ in $PATH because ‘youtube-dl’ is updated frequently.
WDYT?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#35033] [PATCH] gnu: mpv: Set absolute path to 'youtube-dl'.
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
0 siblings, 1 reply; 5+ messages in thread
From: Timo Eisenmann @ 2019-04-03 22:48 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 35033
On Wed, 03 Apr 2019 22:24:12 +0200
Ludovic Courtès <ludo@gnu.org> wrote:
> Hi Timo,
>
> Timo Eisenmann <eisenmann@fn.de> skribis:
>
> > * gnu/packages/video.scm (mpv)[arguments]: Add phase 'patch-paths'
> > to substitute in the absolute path to 'youtube-dl'.
>
> I think it’s a case where it may be more appropriate to look for
> ‘youtube-dl’ in $PATH because ‘youtube-dl’ is updated frequently.
>
> WDYT?
I think we should make mpv's youtube-dl feature work by default instead
of requiring the user to install youtube-dl into their profile.
That being said if, for some reason, someone does not want to update mpv
and still use a newer version of youtube-dl, they can do so by linking
the youtube-dl binary into mpv's config dir (by default: ~/.config/mpv).
>
> Thanks,
> Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#35033: [PATCH] gnu: mpv: Set absolute path to 'youtube-dl'.
2019-04-03 22:48 ` Timo Eisenmann
@ 2019-04-08 8:29 ` Ludovic Courtès
0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2019-04-08 8:29 UTC (permalink / raw)
To: Timo Eisenmann; +Cc: 35033-done
Hello,
Timo Eisenmann <eisenmann@fn.de> skribis:
> On Wed, 03 Apr 2019 22:24:12 +0200
> Ludovic Courtès <ludo@gnu.org> wrote:
[...]
>> I think it’s a case where it may be more appropriate to look for
>> ‘youtube-dl’ in $PATH because ‘youtube-dl’ is updated frequently.
>>
>> WDYT?
>
> I think we should make mpv's youtube-dl feature work by default instead
> of requiring the user to install youtube-dl into their profile.
Arun Isaac <arunisaac@systemreboot.net> skribis:
> We normally don't require the user to install dependencies such as
> youtube-dl into the profile. I think we should retain that behaviour
> even in this case with mpv. It would mean fewer surprises for the
> user. If I'm guessing correctly, mpv doesn't require a lot of effort to
> rebuild.
Alright, that makes sense (and indeed, mpv builds very quickly.)
I added a #t at the end of the phase and committed.
Thank you!
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#35033] [PATCH] gnu: mpv: Set absolute path to 'youtube-dl'.
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 20:36 ` Arun Isaac
1 sibling, 0 replies; 5+ messages in thread
From: Arun Isaac @ 2019-04-03 20:36 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 35033, Timo Eisenmann
[-- Attachment #1: Type: text/plain, Size: 284 bytes --]
We normally don't require the user to install dependencies such as
youtube-dl into the profile. I think we should retain that behaviour
even in this case with mpv. It would mean fewer surprises for the
user. If I'm guessing correctly, mpv doesn't require a lot of effort to
rebuild.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [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.