summaryrefslogtreecommitdiff
path: root/gnu/packages/code.scm
diff options
context:
space:
mode:
authorFries <fries1234@protonmail.com>2023-08-05 11:02:17 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-04-06 13:14:44 +0100
commitcf4f87986ad5b938149603b1d504a1d03931011d (patch)
tree22f36fc61243c9a9148b64802f34b9aa9f7fa38c /gnu/packages/code.scm
parentdccc807eb24791facc9e3144643f1526d101803e (diff)
gnu: Add scc
* gnu/packages/code.scm (scc): New variable. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Change-Id: I90653554a6f0640718892622f76c0c1be138687c
Diffstat (limited to 'gnu/packages/code.scm')
-rw-r--r--gnu/packages/code.scm42
1 files changed, 41 insertions, 1 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 9048466c370..24f8931a5de 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -17,6 +17,7 @@
17;;; Copyright © 2021 lu hui <luhuins@163.com> 17;;; Copyright © 2021 lu hui <luhuins@163.com>
18;;; Copyright © 2021, 2022 Foo Chuan Wei <chuanwei.foo@hotmail.com> 18;;; Copyright © 2021, 2022 Foo Chuan Wei <chuanwei.foo@hotmail.com>
19;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de> 19;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de>
20;;; Copyright © 2023 Fries <fries1234@protonmail.com>
20;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> 21;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
21;;; 22;;;
22;;; This file is part of GNU Guix. 23;;; This file is part of GNU Guix.
@@ -45,6 +46,7 @@
45 #:use-module (guix build-system cmake) 46 #:use-module (guix build-system cmake)
46 #:use-module (guix build-system python) 47 #:use-module (guix build-system python)
47 #:use-module (guix build-system trivial) 48 #:use-module (guix build-system trivial)
49 #:use-module (guix build-system go)
48 #:use-module (gnu packages) 50 #:use-module (gnu packages)
49 #:use-module (gnu packages autogen) 51 #:use-module (gnu packages autogen)
50 #:use-module (gnu packages autotools) 52 #:use-module (gnu packages autotools)
@@ -59,7 +61,10 @@
59 #:use-module (gnu packages emacs) 61 #:use-module (gnu packages emacs)
60 #:use-module (gnu packages flex) 62 #:use-module (gnu packages flex)
61 #:use-module (gnu packages gcc) 63 #:use-module (gnu packages gcc)
62 #:use-module (gnu packages golang) 64 #:use-module (gnu packages golang-build)
65 #:use-module (gnu packages golang-crypto)
66 #:use-module (gnu packages golang-web)
67 #:use-module (gnu packages golang-xyz)
63 #:use-module (gnu packages graphviz) 68 #:use-module (gnu packages graphviz)
64 #:use-module (gnu packages llvm) 69 #:use-module (gnu packages llvm)
65 #:use-module (gnu packages linux) 70 #:use-module (gnu packages linux)
@@ -379,6 +384,41 @@ cloc contains code from David Wheeler's SLOCCount. Compared to SLOCCount,
379cloc can handle a greater variety of programming languages.") 384cloc can handle a greater variety of programming languages.")
380 (license license:gpl2+))) 385 (license license:gpl2+)))
381 386
387(define-public scc
388 (package
389 (name "scc")
390 (version "3.1.0")
391 (source
392 (origin
393 (method git-fetch)
394 (uri (git-reference
395 (url "https://github.com/boyter/scc")
396 (commit (string-append "v" version))))
397 (file-name (git-file-name name version))
398 (sha256
399 (base32 "1rkkfg6jimlc2rkajk6ypd5v0m3zai25ga5idz2pmkmzakv82n21"))))
400 (build-system go-build-system)
401 (arguments
402 (list
403 #:install-source? #f
404 #:import-path "github.com/boyter/scc"))
405 (native-inputs
406 (list go-github-com-dbaggerman-cuba
407 go-github-com-json-iterator-go
408 go-github-com-mattn-go-runewidth
409 go-github-com-minio-blake2b-simd
410 go-github-com-spf13-cobra
411 go-golang-org-x-text
412 go-gopkg-in-yaml-v2))
413 (home-page "https://github.com/boyter/scc")
414 (synopsis "Fast code counter written in Go")
415 (description
416 "@command{scc} provides a lines-of-code counter similar to tools like
417@command{cloc} and @command{sloccount}. It aims to be fast as possible while
418supporting @acronym{COCOMO,Constructive Cost Model} calculation and code
419complexity estimation.")
420 (license license:expat)))
421
382(define-public the-silver-searcher 422(define-public the-silver-searcher
383 (package 423 (package
384 (name "the-silver-searcher") 424 (name "the-silver-searcher")