--- Begin Message ---
Subject: |
[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
--- End Message ---
--- Begin Message ---
Subject: |
[PATCH 00/13] Add scc |
Date: |
Sat, 06 Apr 2024 16:50:14 +0100 |
Hi,
Thank you for the patches.
I've shift them into dedicated local golang-* modules and apply some
modifications.
- accepted-patches [13/13]
- [X] [PATCH v2 01/13] gnu: Add go-github-com-chzyer-logex
- Place to golang-xyz
- Tests disabled, upstream informed
- https://github.com/chzyer/logex/pull/7
- https://github.com/chzyer/logex/issues/4
- referred-in
- [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
- [X] [PATCH v2 02/13] gnu: Add go-github-com-chzyer-test
- Place to golang-check
- Add links to issues
- referred-in
- [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
- [X] [PATCH v2 03/13] gnu: Add go-github-com-chzyer-readline
- Place to golang-xyz
- referred-in
- [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
- [X] [PATCH v2 04/13] gnu: Add go-github-com-ianlancetaylor-demangle
- Place to golang-xyz
- Add issue on version tag or release
https://github.com/ianlancetaylor/demangle/issues/21
- referred-in
- [PATCH 04/13] gnu: Add go-github-com-ianlancetaylor-demangle
https://issues.guix.gnu.org/65073
- [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
- [X] [PATCH v2 05/13] gnu: Add go-github-com-google-pprof
- Place to golang-check, Add go-pprof build, as end-user program
- Add all license, some code in third party may be unbundled when we have
more Node packages
- Extend description
- Update to the latest commit
- referred-in
- [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
- [X] [PATCH v2 06/13] gnu: Add go-github-com-felixge-fgprof
- Place to golang-check
- Update to 0.9.4
- Enable tests
- referred-in
- [PATCH 06/13] gnu: Add go-github-com-felixge-fgprof
https://issues.guix.gnu.org/65077
- [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
- [X] [PATCH v2 07/13] gnu: Add go-github-com-pkg-profile
- Place to golang-check
- Disable tests, issue is open https://github.com/pkg/profile/issues/68
- referred-in
- [PATCH 07/13] gnu: Add go-github-com-pkg-profile
https://issues.guix.gnu.org/65079
- [PATCH 00/29] Add miller. https://issues.guix.gnu.org/66603
- [X] [PATCH v2 08/13] gnu: Add go-github-com-karrick-godirwalk
- Place to golang-xyz
- referred-in
- [PATCH 08/13] gnu: Add go-github-com-karrick-godirwalk
https://issues.guix.gnu.org/65082
- [X] [PATCH v2 09/13] gnu: Add go-github-com-dbaggerman-cuba
- Place to golang-xyz
- Remove github.com/pkg/profile as it's indirect dependence
- referred-in
- [PATCH 09/13] gnu: Add go-github-com-dbaggerman-cuba
https://issues.guix.gnu.org/65080
- [X] [PATCH v2 10/13] gnu: Add go-github-com-modern-go-concurrent
- Place to golang-xyz
- Use available version tag 1.0.3
- referred-in
- [PATCH 00/47] gnu: Add go-github-com-prometheus-prometheus.
https://issues.guix.gnu.org/54560
- [X] [PATCH v2 11/13] gnu: Add go-github-com-modern-go-reflect2
- Place to golang-xyz
- referred-in
- [PATCH 00/47] gnu: Add go-github-com-prometheus-prometheus.
https://issues.guix.gnu.org/54560
- [PATCH 11/13] gnu: Add go-github-com-modern-go-reflect2
https://issues.guix.gnu.org/65084
- [X] [PATCH v2 12/13] gnu: Add go-github-com-json-iterator-go
- referred-in
- [PATCH 12/13] gnu: Add go-github-com-json-iterator-go
https://issues.guix.gnu.org/65085
- [PATCH 00/47] gnu: Add go-github-com-prometheus-prometheus.
https://issues.guix.gnu.org/54560
- [X] [PATCH v2 13/13] gnu: Add scc
Pushed as c28b319640..cf4f87986a to master.
--
Oleg
signature.asc
Description: PGP signature
--- End Message ---