diff options
| author | Sergey Trofimov <sarg@sarg.org.ru> | 2025-12-18 18:31:57 +0100 |
|---|---|---|
| committer | Cayetano Santos <csantosb@inventati.org> | 2025-12-21 18:02:14 +0100 |
| commit | 5b7f0a952c8f156cafb73dee176485f989069773 (patch) | |
| tree | 5748d1337686c386c6b8555062e32ca6f5b521ff /gnu | |
| parent | 724d0cc75326d6463bb02862c43edac9bcca41b9 (diff) | |
gnu: emacs-yeetube: Simplify locate-binaries phase.
* gnu/packages/emacs-xyz.scm (emacs-yeetube)
[arguments]<#:phases>{locate-binaries}: Reduce code duplication.
Change-Id: Ibe5ae19ec7877a81b80f28052680feab7fb154ab
Signed-off-by: Cayetano Santos <csantosb@inventati.org>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/emacs-xyz.scm | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 14ad5a6146d..1c1f2b9e276 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm | |||
| @@ -34167,15 +34167,9 @@ and comments.") | |||
| 34167 | (add-after 'unpack 'locate-binaries | 34167 | (add-after 'unpack 'locate-binaries |
| 34168 | (lambda* (#:key inputs #:allow-other-keys) | 34168 | (lambda* (#:key inputs #:allow-other-keys) |
| 34169 | (substitute* (find-files "." "\\.el$") | 34169 | (substitute* (find-files "." "\\.el$") |
| 34170 | (("\\(executable-find \"mpv\"\\)") | 34170 | (("\\(executable-find \"(mpv|torsocks|yt-dlp)\"\\)" all program) |
| 34171 | (format #f "~s" | 34171 | (format #f "~s" (search-input-file inputs |
| 34172 | (search-input-file inputs "/bin/mpv"))) | 34172 | (string-append "/bin/" program)))))))))) |
| 34173 | (("\\(executable-find \"torsocks\"\\)") | ||
| 34174 | (format #f "~s" | ||
| 34175 | (search-input-file inputs "/bin/torsocks"))) | ||
| 34176 | (("\\(executable-find \"yt-dlp\"\\)") | ||
| 34177 | (format #f "~s" | ||
| 34178 | (search-input-file inputs "/bin/yt-dlp"))))))))) | ||
| 34179 | (inputs (list mpv torsocks yt-dlp)) | 34173 | (inputs (list mpv torsocks yt-dlp)) |
| 34180 | (propagated-inputs (list emacs-compat)) | 34174 | (propagated-inputs (list emacs-compat)) |
| 34181 | (home-page "https://thanosapollo.org/projects/yeetube/") | 34175 | (home-page "https://thanosapollo.org/projects/yeetube/") |
