guix-patches
[Top][All Lists]
Advanced

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

bug#26069: [PATCH 2/2] gnu: Add shellcheck.


From: Danny Milosavljevic
Subject: bug#26069: [PATCH 2/2] gnu: Add shellcheck.
Date: Sun, 12 Mar 2017 10:04:29 +0100

* gnu/packages/haskell.scm (shellcheck): New variable.
---
 gnu/packages/haskell.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index ce37f63f9..62bae9d81 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -8239,4 +8239,39 @@ It is based on a subset of the JavaScript Programming 
Language, Standard
 ECMA-262 3rd Edition - December 1999.")
     (license license:bsd-3)))
 
+(define-public shellcheck
+  (package
+    (name "shellcheck")
+    (version "0.4.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/koalaman/shellcheck/archive/";
+                           "v" version ".tar.gz"))
+       (sha256
+        (base32
+         "14r84fcn28rin339avlvca5g0kz832f01x8dpmwb5ql8mbc4rlxr"))
+       (file-name (string-append name "-" version ".tar.gz"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-quickcheck" ,ghc-quickcheck)
+       ("ghc-json" ,ghc-json)
+       ("ghc-mtl" ,ghc-mtl)
+       ("ghc-parsec" ,ghc-parsec)
+       ("ghc-regex-tdfa" ,ghc-regex-tdfa)))
+    (home-page "https://github.com/koalaman/shellcheck";)
+    (synopsis "Static analysis for shell scripts")
+    (description "@code{shellcheck} provides static analysis for bash and sh 
shell
+scripts.  It gives warnings and suggestions in order to:
+
address@hidden
address@hidden Point out and clarify typical beginner's syntax issues that cause
+a shell to give cryptic error messages.
address@hidden Point out and clarify typical intermediate level semantic 
problems
+that cause a shell to behave strangely and counter-intuitively.
address@hidden Point out subtle caveats, corner cases and pitfalls that may 
cause an
+advanced user's otherwise working script to fail under future circumstances.
address@hidden enumerate")
+    (license license:gpl3+)))
+
 ;;; haskell.scm ends here





reply via email to

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