[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
- [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex, (continued)
- [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex, Fries, 2023/08/05
- [bug#65076] [PATCH 03/13] gnu: Add go-github-com-chyzer-readline, Fries, 2023/08/05
- [bug#65079] [PATCH 07/13] gnu: Add go-github-com-pkg-profile, Fries, 2023/08/05
- [bug#65080] [PATCH 09/13] gnu: Add go-github-com-dbaggerman-cuba, Fries, 2023/08/05
- [bug#65077] [PATCH 06/13] gnu: Add go-github-com-felixge-fgprof, Fries, 2023/08/05
- [bug#65083] [PATCH 13/13] gnu: Add scc,
Fries <=
- [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go, Fries, 2023/08/05
- [bug#65081] [PATCH 10/13] gnu: Add go-github-com-modern-go-concurrent, Fries, 2023/08/05
- [bug#65084] [PATCH 11/13] gnu: Add go-github-com-modern-go-reflect2, Fries, 2023/08/05
- [bug#65082] [PATCH 08/13] gnu: Add go-github-com-karrick-godirwalk, Fries, 2023/08/05