Subject: [bug#78315] [PATCH 16/53] gnu: emacs-eimp: Improve style.

From: Nicolas Graves <[email-masked]>
Date: Thu, 8 May 2025 14:50:18 +0200

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

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 9c37b7f717..cfd0a951fa 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -23134,13 +23134,11 @@ (define-public emacs-eimp
          (modify-phases %standard-phases
            (add-after 'unpack 'configure
              (lambda* (#:key inputs #:allow-other-keys)
-               (let ((imagemagick (assoc-ref inputs "imagemagick")))
-                 ;; eimp.el is read-only in git.
-                 (chmod "eimp.el" #o644)
-                 (emacs-substitute-variables "eimp.el"
-                   ("eimp-mogrify-program"
-                    (string-append imagemagick "/bin/mogrify"))))
-               #t)))))
+               ;; eimp.el is read-only in git.
+               (chmod "eimp.el" #o644)
+               (emacs-substitute-variables "eimp.el"
+                 ("eimp-mogrify-program"
+                  (search-input-file inputs "bin/mogrify"))))))))
       (inputs
        (list imagemagick))
       (home-page "https://github.com/nicferrier/eimp")
-- 
2.49.0