unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Fries via Guix-patches via <guix-patches@gnu.org>
To: 65074@debbugs.gnu.org
Cc: Fries <fries1234@protonmail.com>
Subject: [bug#65074] [PATCH v2 13/13] gnu: Add scc
Date: Sat, 05 Aug 2023 11:02:17 +0000	[thread overview]
Message-ID: <56c64b174ccbbabb85fb1895a68f81df69efe39b.1691233116.git.fries1234@protonmail.com> (raw)
In-Reply-To: <cover.1691233116.git.fries1234@protonmail.com>

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

diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 9cdda2b751..3b95bb3664 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>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -44,6 +45,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 +375,39 @@ (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)
+    (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
+     (list #:import-path "github.com/boyter/scc"))
+    (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")
-- 
2.41.0






  parent reply	other threads:[~2023-08-05 11:49 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-05  7:00 [bug#65074] [PATCH 00/13] Add scc Fries via Guix-patches via
2023-08-05  7:00 ` [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex Fries via Guix-patches via
2023-08-05  9:08   ` ( via Guix-patches via
2024-04-06 15:55   ` Sharlatan Hellseher
2023-08-05  7:00 ` [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test Fries via Guix-patches via
2023-08-05  9:14   ` ( via Guix-patches via
2023-09-01 12:08   ` [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go Maxim Cournoyer
2024-04-06 15:52   ` [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test Sharlatan Hellseher
2024-04-06 15:53   ` Sharlatan Hellseher
2023-08-05  7:00 ` [bug#65076] [PATCH 03/13] gnu: Add go-github-com-chyzer-readline Fries via Guix-patches via
2023-08-05  9:15   ` ( via Guix-patches via
2024-04-06 15:56   ` Sharlatan Hellseher
2023-08-05  7:00 ` [bug#65073] [PATCH 04/13] gnu: Add go-github-com-ianlancetaylor-demangle Fries via Guix-patches via
2023-08-05  9:16   ` ( via Guix-patches via
2024-04-06 15:53   ` Sharlatan Hellseher
2023-08-05  7:00 ` [bug#65078] [PATCH 05/13] gnu: Add go-github-com-google-pprof Fries via Guix-patches via
2023-08-05  9:18   ` ( via Guix-patches via
2023-08-05  7:00 ` [bug#65077] [PATCH 06/13] gnu: Add go-github-com-felixge-fgprof Fries via Guix-patches via
2023-08-05  9:18   ` ( via Guix-patches via
2023-08-05  7:00 ` [bug#65079] [PATCH 07/13] gnu: Add go-github-com-pkg-profile Fries via Guix-patches via
2023-08-05  9:19   ` ( via Guix-patches via
2023-08-05  7:00 ` [bug#65082] [PATCH 08/13] gnu: Add go-github-com-karrick-godirwalk Fries via Guix-patches via
2023-08-05  9:21   ` ( via Guix-patches via
2023-08-05  7:00 ` [bug#65080] [PATCH 09/13] gnu: Add go-github-com-dbaggerman-cuba Fries via Guix-patches via
2023-08-05  9:22   ` ( via Guix-patches via
2023-08-05  7:00 ` [bug#65081] [PATCH 10/13] gnu: Add go-github-com-modern-go-concurrent Fries via Guix-patches via
2023-08-05  9:24   ` ( via Guix-patches via
2023-08-05  7:00 ` [bug#65084] [PATCH 11/13] gnu: Add go-github-com-modern-go-reflect2 Fries via Guix-patches via
2023-08-05  9:24   ` ( via Guix-patches via
2023-08-05  7:01 ` [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go Fries via Guix-patches via
2023-08-05  9:25   ` ( via Guix-patches via
2023-08-05  7:01 ` [bug#65083] [PATCH 13/13] gnu: Add scc Fries via Guix-patches via
2023-08-05  9:26   ` ( via Guix-patches via
     [not found]   ` <5f2cbbcab7bffce62f537af2912233c1b30c58a89092d9c56bdbb27a90879851@mu.id>
2023-08-05 10:01     ` ( via Guix-patches via
2023-08-05 11:01 ` [bug#65074] [PATCH v2 00/13] " Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 01/13] gnu: Add go-github-com-chyzer-logex Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 02/13] gnu: Add go-github-com-chyzer-test Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 03/13] gnu: Add go-github-com-chyzer-readline Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 04/13] gnu: Add go-github-com-ianlancetaylor-demangle Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 05/13] gnu: Add go-github-com-google-pprof Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 06/13] gnu: Add go-github-com-felixge-fgprof Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 07/13] gnu: Add go-github-com-pkg-profile Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 08/13] gnu: Add go-github-com-karrick-godirwalk Fries via Guix-patches via
2023-08-05 11:01   ` [bug#65074] [PATCH v2 09/13] gnu: Add go-github-com-dbaggerman-cuba Fries via Guix-patches via
2023-08-05 11:02   ` [bug#65074] [PATCH v2 10/13] gnu: Add go-github-com-modern-go-concurrent Fries via Guix-patches via
2023-08-05 11:02   ` [bug#65074] [PATCH v2 11/13] gnu: Add go-github-com-modern-go-reflect2 Fries via Guix-patches via
2023-08-05 11:02   ` [bug#65074] [PATCH v2 12/13] gnu: Add go-github-com-json-iterator-go Fries via Guix-patches via
2023-08-05 11:02   ` Fries via Guix-patches via [this message]
2023-08-05 11:53     ` [bug#65074] [PATCH v2 13/13] gnu: Add scc ( via Guix-patches via
2024-04-06 15:50 ` bug#65074: [PATCH 00/13] " Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56c64b174ccbbabb85fb1895a68f81df69efe39b.1691233116.git.fries1234@protonmail.com \
    --to=guix-patches@gnu.org \
    --cc=65074@debbugs.gnu.org \
    --cc=fries1234@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).