gnu: emacs-flymake-shellcheck: Use search-input-file.

* gnu/packages/emacs-xyz.scm (emacs-flymake-shellcheck):
  [arguments]<phases>: Improve phase 'substitute-shellcheck-path.

Signed-off-by: Ian Eure <ian@retrospec.tv>
This commit is contained in:
Nicolas Graves 2025-05-18 10:16:10 +02:00 committed by Liliana Marie Prikler
parent 7d5a498b4b
commit 279ce57d5b
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -3676,8 +3676,7 @@ boilerplate code from defining new Flymake backend functions.")
(emacs-substitute-sexps "flymake-shellcheck.el"
("defcustom flymake-shellcheck-path"
`(or (executable-find "shellcheck")
,(string-append (assoc-ref inputs "shellcheck")
"/bin/shellcheck")))))))))
,(search-input-file inputs "bin/shellcheck")))))))))
(inputs
(list shellcheck))
(home-page "https://github.com/federicotdn/flymake-shellcheck")