Subject: [PATCH v3 13/53] gnu: emacs-org-pandoc-import: Use search-input-file.

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

* gnu/packages/emacs-xyz.scm (emacs-org-pandoc-import):
  [arguments]<phases>: Improve 'patch-exec-paths phase.  Use
  emacs-substitute-variables instead of substitute*.  Use
  search-input-file.
---
 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 a00f66a5bd..f0489ad57d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -13000,10 +13000,9 @@ (define-public emacs-org-pandoc-import
          (modify-phases %standard-phases
            (add-after 'unpack 'patch-exec-paths
              (lambda* (#:key inputs #:allow-other-keys)
-               (let ((pandoc (assoc-ref inputs "pandoc")))
-                 (substitute* "org-pandoc-import.el"
-                   (("\"pandoc\"")
-                    (string-append "\"" pandoc "/bin/pandoc\"")))))))))
+               (emacs-substitute-variables "org-pandoc-import.el"
+                 ("org-pandoc-import-executable"
+                  (search-input-file inputs "bin/pandoc"))))))))
       (inputs
        (list pandoc))
       (home-page "https://github.com/tecosaur/org-pandoc-import/")
-- 
2.49.0