GNU bug report logs - #41731
[PATCH] gnu: Add emacs-flymake-shellcheck.

Previous Next

Package: guix-patches;

Reported by: Fredrik Salomonsson <plattfot <at> gmail.com>

Date: Fri, 5 Jun 2020 23:35:01 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#41731: closed ([PATCH] gnu: Add emacs-flymake-shellcheck.)
Date: Sun, 07 Jun 2020 19:24:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 07 Jun 2020 21:22:53 +0200
with message-id <875zc27kaa.fsf <at> nicolasgoaziou.fr>
and subject line Re: [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck.
has caused the debbugs.gnu.org bug report #41731,
regarding [PATCH] gnu: Add emacs-flymake-shellcheck.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
41731: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=41731
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Fredrik Salomonsson <plattfot <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Fredrik Salomonsson <plattfot <at> gmail.com>
Subject: [PATCH] gnu: Add emacs-flymake-shellcheck.
Date: Fri,  5 Jun 2020 16:33:49 -0700
* gnu/packages/emacs-xyz.scm (emacs-flymake-shellcheck): New variable.
---
 gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6110374281..73d030f239 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -992,6 +992,34 @@ different tools.  It highlights errors and warnings inline in the buffer, and
 provides an optional IDE-like error list.")
       (license license:gpl3+))))                     ;+GFDLv1.3+ for the manual
 
+(define-public emacs-flymake-shellcheck
+  ;; No tag, version grabbed from source .el file.
+  (let ((commit "78956f0e5bb9c4d35989657a55929e8e3f5691e6")
+        (revision "0"))
+    (package
+      (name "emacs-flymake-shellcheck")
+      (version (git-version "0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/federicotdn/flymake-shellcheck.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "068mx5p4drwgppy4ry1rfq6qi79w6d82b4rnpl2jm37grsg94lix"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("shellcheck" ,shellcheck)))
+      (home-page "https://github.com/federicotdn/flymake-shellcheck")
+      (synopsis "Flymake backend for Bash/Sh powered by ShellCheck")
+      (description
+       "This package provides a backend for Flymake (emacs-26+) to use the
+tool @command{shellcheck} for static analyzing @command{bash} and @command{sh}
+scripts.  Please see the description on @command{shellcheck} for more
+information on what it can do.")
+      (license license:gpl3+))))
+
 (define-public emacs-a
   (package
     (name "emacs-a")
-- 
2.26.2



[Message part 3 (message/rfc822, inline)]
From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Fredrik Salomonsson via web <issues.guix.gnu.org <at> elephly.net>
Cc: 41731-done <at> debbugs.gnu.org
Subject: Re: [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck.
Date: Sun, 07 Jun 2020 21:22:53 +0200
Hello,

Fredrik Salomonsson via web <issues.guix.gnu.org <at> elephly.net> writes:

> I was debating to myself whether to include shellcheck or not. As when
> I looked around in emacs-xyz.scm, for example `emacs-ag' does
> propagate the-silver-searcher but `emacs-direnv' does not.

emacs-ag package contains a comment explaining why the propagated inputs
is required.

Sometimes, it is unavoidable, but usage of propagated-inputs should be
as limited as possible.

> Anyway, I removed it in the latest patch.

Thank you. I applied your patch.

Regards,

-- 
Nicolas Goaziou


This bug report was last modified 4 years and 347 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.