Subject: [bug#78315] [PATCH v3 24/53] gnu: emacs-sxiv: Improve style.

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

* gnu/packages/emacs-xyz.scm (emacs-sxiv):
  [arguments]<phases>: Use search-input-file in phase 'set-sxiv-path.
---
 gnu/packages/emacs-xyz.scm | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a5ead18400..63ba3aa266 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -30887,8 +30887,6 @@ (define-public emacs-sxiv
               (sha256
                (base32
                 "0gimq172pp143jckfhhyw319n3vpjvlkadm0vhypycas9i89mcg0"))))
-    (inputs (list sxiv))
-    (propagated-inputs (list emacs-dash))
     (arguments
      `(#:phases
        (modify-phases %standard-phases
@@ -30897,8 +30895,9 @@ (define-public emacs-sxiv
              (emacs-substitute-sexps "sxiv.el"
                (":command
                   (append"
-                `(list ,(string-append (assoc-ref inputs "sxiv")
-                                       "/bin/sxiv")))))))))
+                `(list ,(search-input-file inputs "bin/sxiv")))))))))
+    (inputs (list sxiv))
+    (propagated-inputs (list emacs-dash))
     (build-system emacs-build-system)
     (home-page "https://tildegit.org/contrapunctus/sxiv")
     (synopsis "Launch sxiv from Emacs with Dired integration")
-- 
2.49.0