gnu: emacs-yeetube: Use executables from inputs.

* gnu/packages/emacs-xyz.scm (emacs-yeetube)[arguments]: Set locations for
"mpv" and "yt-dlp" executables from the store instead of relying on `executable-find'.
This commit is contained in:
Nicolas Goaziou 2023-10-03 22:00:02 +02:00
parent 81fea9f445
commit 761cc5ae23
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -27932,6 +27932,18 @@ (define-public emacs-yeetube
"175yz46gql27y2v02apa1zyzgparzpgrsmw1mbb1nlx0cnf7an79"))
(file-name (git-file-name name version))))
(build-system emacs-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'locate-binaries
(lambda* (#:key inputs #:allow-other-keys)
(emacs-substitute-variables "yeetube.el"
("yeetube-yt-dlp"
(search-input-file inputs "/bin/yt-dlp")))
(substitute* "yeetube-mpv.el"
(("\\(executable-find \"mpv\"\\)")
(search-input-file inputs "/bin/mpv"))))))))
(inputs
(list mpv yt-dlp))
(home-page "https://thanosapollo.com/blog/yeetube/")