Subject: [bug#78315] [PATCH v3 22/53] gnu: emacs-edbi: Use search-input-file.

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

* gnu/packages/emacs-xyz.scm (emacs-edbi): Improve style.
  [arguments]<phases>: Improve style of phase 'patch-path.
---
 gnu/packages/emacs-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 57601c76da..244dc12738 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -33183,9 +33183,9 @@ (define-public emacs-edbi
          (modify-phases %standard-phases
            (add-after 'unpack 'patch-path
              (lambda* (#:key inputs #:allow-other-keys)
-               (let ((perl (assoc-ref inputs "perl")))
+               (let ((perl (search-input-file inputs "bin/perl")))
                  (substitute* "edbi.el"
-                   (("\"perl\"") (string-append "\"" perl "/bin/perl\""))))))
+                   (("\"perl\"") (string-append "\"" perl "\""))))))
            (add-after 'install 'wrap-edbi-bridge
              (lambda* (#:key inputs outputs #:allow-other-keys)
                (let* ((out (assoc-ref outputs "out"))
-- 
2.49.0