[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/33: gnu: Add scc
From: |
guix-commits |
Subject: |
21/33: gnu: Add scc |
Date: |
Sat, 6 Apr 2024 08:27:47 -0400 (EDT) |
sharlatan pushed a commit to branch master
in repository guix.
commit cf4f87986ad5b938149603b1d504a1d03931011d
Author: Fries <fries1234@protonmail.com>
AuthorDate: Sat Aug 5 11:02:17 2023 +0000
gnu: Add scc
* gnu/packages/code.scm (scc): New variable.
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Change-Id: I90653554a6f0640718892622f76c0c1be138687c
---
gnu/packages/code.scm | 42 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 41 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 9048466c37..24f8931a5d 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -17,6 +17,7 @@
;;; Copyright © 2021 lu hui <luhuins@163.com>
;;; Copyright © 2021, 2022 Foo Chuan Wei <chuanwei.foo@hotmail.com>
;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de>
+;;; Copyright © 2023 Fries <fries1234@protonmail.com>
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;;
;;; This file is part of GNU Guix.
@@ -45,6 +46,7 @@
#: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)
@@ -59,7 +61,10 @@
#:use-module (gnu packages emacs)
#:use-module (gnu packages flex)
#:use-module (gnu packages gcc)
- #:use-module (gnu packages golang)
+ #:use-module (gnu packages golang-build)
+ #:use-module (gnu packages golang-crypto)
+ #:use-module (gnu packages golang-web)
+ #:use-module (gnu packages golang-xyz)
#:use-module (gnu packages graphviz)
#:use-module (gnu packages llvm)
#:use-module (gnu packages linux)
@@ -379,6 +384,41 @@ cloc contains code from David Wheeler's SLOCCount.
Compared to SLOCCount,
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)
+ (arguments
+ (list
+ #:install-source? #f
+ #:import-path "github.com/boyter/scc"))
+ (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))
+ (home-page "https://github.com/boyter/scc")
+ (synopsis "Fast code counter written in Go")
+ (description
+ "@command{scc} provides a lines-of-code counter similar to tools like
+@command{cloc} and @command{sloccount}. It aims to be fast as possible while
+supporting @acronym{COCOMO,Constructive Cost Model} calculation and code
+complexity estimation.")
+ (license license:expat)))
+
(define-public the-silver-searcher
(package
(name "the-silver-searcher")
- 06/33: gnu: Add go-github-com-felixge-fgprof., (continued)
- 06/33: gnu: Add go-github-com-felixge-fgprof., guix-commits, 2024/04/06
- 12/33: gnu: Add go-github-com-json-iterator-go., guix-commits, 2024/04/06
- 20/33: gnu: go-gopkg-in-yaml-v2: Move to golang-xyz., guix-commits, 2024/04/06
- 29/33: gnu: tz: Update to 0.7.0., guix-commits, 2024/04/06
- 01/33: gnu: Add go-github-com-chzyer-logex., guix-commits, 2024/04/06
- 02/33: gnu: Add go-github-com-chzyer-test., guix-commits, 2024/04/06
- 09/33: gnu: Add go-github-com-dbaggerman-cuba., guix-commits, 2024/04/06
- 19/33: gnu: go-github-com-spf13-cobra: Move to golang-xyz., guix-commits, 2024/04/06
- 07/33: gnu: Add go-github-com-pkg-profile., guix-commits, 2024/04/06
- 14/33: gnu: go-github-com-mattn-go-isatty: Move to golang-xyz., guix-commits, 2024/04/06
- 21/33: gnu: Add scc,
guix-commits <=
- 11/33: gnu: Add go-github-com-modern-go-reflect2., guix-commits, 2024/04/06
- 17/33: gnu: go-github-com-mattn-go-zglob: Move to golang-xyz., guix-commits, 2024/04/06
- 27/33: gnu: lf: Refresh package style., guix-commits, 2024/04/06
- 10/33: gnu: Add go-github-com-modern-go-concurrent., guix-commits, 2024/04/06
- 05/33: gnu: Add go-github-com-google-pprof., guix-commits, 2024/04/06
- 18/33: gnu: go-github-com-mattn-go-sqlite3: Move to golang-xyz., guix-commits, 2024/04/06
- 16/33: gnu: go-github-com-mattn-go-pointer: Move to golang-xyz., guix-commits, 2024/04/06
- 24/33: gnu: go-github-com-songmu-gitconfig: Update to 0.1.1., guix-commits, 2024/04/06
- 25/33: gnu: Add go-github-com-djherbis-times., guix-commits, 2024/04/06
- 30/33: gnu: tz: Refresh package style., guix-commits, 2024/04/06