guix-patches
[Top][All Lists]
Advanced

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

[bug#65083] [PATCH 13/13] gnu: Add scc


From: Fries
Subject: [bug#65083] [PATCH 13/13] gnu: Add scc
Date: Sat, 05 Aug 2023 07:01:06 +0000

* gnu/packages/code.scm (scc): New variable.
---
 gnu/packages/code.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 9cdda2b751..6a74d1a9ca 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -44,6 +44,7 @@ (define-module (gnu packages code)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
+  #:use-module (guix build-system go)
   #:use-module (gnu packages)
   #:use-module (gnu packages autogen)
   #:use-module (gnu packages autotools)
@@ -373,6 +374,41 @@ (define-public cloc
 cloc can handle a greater variety of programming languages.")
     (license license:gpl2+)))
 
+(define-public scc
+  (package
+    (name "scc")
+    (version "3.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/boyter/scc";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1rkkfg6jimlc2rkajk6ypd5v0m3zai25ga5idz2pmkmzakv82n21"))))
+    (build-system go-build-system)
+    (native-inputs (list go-github-com-dbaggerman-cuba
+                         go-github-com-json-iterator-go
+                         go-github-com-mattn-go-runewidth
+                         go-github-com-minio-blake2b-simd
+                         go-github-com-spf13-cobra
+                         go-golang-org-x-text
+                         go-gopkg-in-yaml-v2))
+    (arguments
+     `(#:import-path "github.com/boyter/scc"))
+    (home-page "https://github.com/boyter/scc";)
+    (synopsis "Very fast accurate code counter written in pure Go")
+    (description
+     "A tool similar to cloc, sloccount and tokei.
+For counting the lines of code, blank lines, comment lines, and
+physical lines of source code in many programming languages.
+
+Goal is to be the fastest code counter possible, but also
+perform COCOMO calculation like sloccount and to estimate
+code complexity similar to cyclomatic complexity calculators.")
+    (license license:expat)))
+
 (define-public the-silver-searcher
   (package
     (name "the-silver-searcher")
-- 
2.41.0







reply via email to

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