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 <efraim@flashner.co.il>
This commit is contained in:
Morgan Smith 2021-11-02 19:13:10 -04:00 committed by Efraim Flashner
parent 1007eb4874
commit 88d5081986
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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