Subject: [PATCH v3 12/53] gnu: emacs-alarm-clock: Use search-input-file.

From: Nicolas Graves <[email-masked]>
Date: Sun, 18 May 2025 10:16:11 +0200

* gnu/packages/emacs-xyz.scm (emacs-alarm-clock):
  [arguments]<phases>: Improve phase 'configure.
---
 gnu/packages/emacs-xyz.scm | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 368710d2cc..a00f66a5bd 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -3625,12 +3625,12 @@ (define-public emacs-alarm-clock
            #~(modify-phases %standard-phases
                (add-after 'unpack 'configure
                  (lambda* (#:key inputs #:allow-other-keys)
-                   (let ((mpg123 (search-input-file inputs "/bin/mpg123"))
-                         (notify-send
-                          (search-input-file inputs "/bin/notify-send")))
-                     (substitute* "alarm-clock.el"
-                       (("\"mpg123\"") (string-append "\"" mpg123 "\""))
-                       (("notify-send") notify-send))))))))
+                   (substitute* "alarm-clock.el"
+                     (("\"mpg123\"")
+                      (string-append
+                       "\"" (search-input-file inputs "bin/mpg123") "\""))
+                     (("notify-send")
+                      (search-input-file inputs "bin/notify-send"))))))))
     (inputs
      (list libnotify mpg123))
     (propagated-inputs
-- 
2.49.0