From 88d5081986bb1f78b37a11e9e24f5658f2315558 Mon Sep 17 00:00:00 2001 From: Morgan Smith Date: Tue, 2 Nov 2021 19:13:10 -0400 Subject: gnu: emacs-flymake-shellcheck: Add reference to shellcheck. * gnu/packages/emacs-xyz.scm (emacs-flymake-shellcheck) [inputs]: Add shellcheck. [arguments]: Add substitute-shellcheck-path phase. Signed-off-by: Efraim Flashner --- gnu/packages/emacs-xyz.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gnu/packages/emacs-xyz.scm') diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 7ff478468d..9ba178513c 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -1649,6 +1649,19 @@ (define-public emacs-flymake-shellcheck (sha256 (base32 "04yfb4sy41spjzk9mhm4gy0h8vnjx09p2g6nm1yzgd9a5ph9sqgl")))) (build-system emacs-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'substitute-shellcheck-path + (lambda* (#:key inputs #:allow-other-keys) + (make-file-writable "flymake-shellcheck.el") + (emacs-substitute-sexps "flymake-shellcheck.el" + ("defcustom flymake-shellcheck-path" + `(or (executable-find "shellcheck") + ,(string-append (assoc-ref inputs "shellcheck") + "/bin/shellcheck"))))))))) + (inputs + `(("shellcheck" ,shellcheck))) (home-page "https://github.com/federicotdn/flymake-shellcheck") (synopsis "Flymake backend for Bash/Sh powered by ShellCheck") (description -- cgit v1.2.3