mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
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:
parent
81fea9f445
commit
761cc5ae23
1 changed files with 12 additions and 0 deletions
|
@ -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/")
|
||||
|
|
Loading…
Reference in a new issue