guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: emacs-flymake-shellcheck: Add reference to s


From: guix-commits
Subject: branch master updated: gnu: emacs-flymake-shellcheck: Add reference to shellcheck.
Date: Thu, 04 Nov 2021 08:58:41 -0400

This is an automated email from the git hooks/post-receive script.

efraim pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 88d5081  gnu: emacs-flymake-shellcheck: Add reference to shellcheck.
88d5081 is described below

commit 88d5081986bb1f78b37a11e9e24f5658f2315558
Author: Morgan Smith <Morgan.J.Smith@outlook.com>
AuthorDate: Tue Nov 2 19:13:10 2021 -0400

    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>
---
 gnu/packages/emacs-xyz.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 7ff4784..9ba1785 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -1649,6 +1649,19 @@ boilerplate code from defining new Flymake backend 
functions.")
          (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]