From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kB71KSUOzmT7GwAASxT56A (envelope-from ) for ; Sat, 05 Aug 2023 10:53:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0JD8KSUOzmQATAEA9RJhRA (envelope-from ) for ; Sat, 05 Aug 2023 10:53:57 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 82B725CC18 for ; Sat, 5 Aug 2023 10:53:57 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=GM664Ax7; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691225637; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9r01OoVWrLrbuT8MgMGuz/3nrNYLkfFFWcQ8eJveFSc=; b=JZ4kPP2J7iHawkNdHLygohRi/l6cBnwYm4CsiZN28ubsmH5SxAKHKa/H3rVyc4Cnf0BOKW aXujIHH88FFnyu85J1jIZ9ra8ML0G8dtRr9fX0Pf2WKIE6Jrmk47LI6ZvBr0RMlVsgZTdF VbLpC+sQL/R5j8lcCNLAHIuki3h7Df1F4L51l+JL6sbFE4TXrSprUoTKCXodjYkQGkliRF FtyWql/6OpCafTktD3ih32NHKNM0MzpVm909df514rrKgRBFXjsiTmO9Lv49QMf6mra0U3 wBQVFZg09qVl01aeYlSP44t68xjdgefi4pHawvvvPpZwD4KeDUa+JJnT8Bt75w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=GM664Ax7; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691225637; a=rsa-sha256; cv=none; b=GRhpxLq34UA11IAfaaEHZI+Z9kBL7FmVGqjC/nfjdvk9C1pSGS/vCggWcBscs2dW/cEDOp mdTHWrTuJqaNilUPpwNOmTKyyuUqhFd2YIvBVjJ9D01W7y0M5vZQM9Vvw6ddQuqPovyri/ 8AeOyF4+Kk4H92BNT4cBL86zlV1Kabs/R5Nh5LbCEAyepbS/iNmzlz9c9CfR/C85toVNFF GP3Hw1AWWlxDIRVT50x5h4OMHtRbwrCycQHYrqKbDX581DGFTw+SnNFfqxZPD0ZaewbNHH yc2NmFrk8IFxhjzhUQwgC6deFtJDdL2rIUx5pMoLwiSZD5L8uNCHvIzCg+3DGQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSD2C-0003Si-HZ; Sat, 05 Aug 2023 04:53:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSD2A-0003RT-Mf for guix-patches@gnu.org; Sat, 05 Aug 2023 04:53:14 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSD2A-0007M3-Cv for guix-patches@gnu.org; Sat, 05 Aug 2023 04:53:14 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSD2A-0007NF-7z for guix-patches@gnu.org; Sat, 05 Aug 2023 04:53:14 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65083] [PATCH 13/13] gnu: Add scc Resent-From: Fries Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Aug 2023 08:53:14 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65083 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65083@debbugs.gnu.org Cc: Fries X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169122557628077 (code B ref -1); Sat, 05 Aug 2023 08:53:14 +0000 Received: (at submit) by debbugs.gnu.org; 5 Aug 2023 08:52:56 +0000 Received: from localhost ([127.0.0.1]:55484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSD1s-0007Ih-1h for submit@debbugs.gnu.org; Sat, 05 Aug 2023 04:52:56 -0400 Received: from lists.gnu.org ([2001:470:142::17]:59270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSBI6-0001vc-SE for submit@debbugs.gnu.org; Sat, 05 Aug 2023 03:01:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSBHv-000880-34 for guix-patches@gnu.org; Sat, 05 Aug 2023 03:01:27 -0400 Received: from mail-4318.protonmail.ch ([185.70.43.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSBHr-0004zd-6Y for guix-patches@gnu.org; Sat, 05 Aug 2023 03:01:21 -0400 Date: Sat, 05 Aug 2023 07:01:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1691218877; x=1691478077; bh=9r01OoVWrLrbuT8MgMGuz/3nrNYLkfFFWcQ8eJveFSc=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=GM664Ax71ZBWDDAMhYpVbbq0K+p2GTvi0UoeUp2mauNsWq/PolD0yHMq9ESqseWhF zbDjMocDSnMaLjs990FVgjer/HzLLzvx6WDaPVSNa+9p4lskQy/QP/CeqdVU6SVpyF CjtcLXF3/P0OQBK0QAUaNBtn4dPGwjt4I+ILFXye/kOU2dD8bT1gJ1RxZRQugJbPDf U/n+SWmSGioLxdtbOn8+t7NYd4JjT9oaMYZbhFAfEHKFyhg444aOmeOZEJDTcBLHRb D6p9RC2qS4yZ6xYOvllzVoya1xBkL/fduA0wELQnauchDN/x8shBboUjv2+mhiFjqN Eel+33mDzc6bg== Message-ID: <31eb7dc018e2c47bd0c880291284e32cc2177ced.1691218710.git.fries1234@protonmail.com> In-Reply-To: References: Feedback-ID: 42759890:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.18; envelope-from=fries1234@protonmail.com; helo=mail-4318.protonmail.ch X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 05 Aug 2023 04:52:40 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Fries X-ACL-Warn: , Fries via Guix-patches From: Fries via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 82B725CC18 X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -6.65 X-Migadu-Spam-Score: -6.65 X-TUID: moQZlqs3l2tN * 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+))) =20 +(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") --=20 2.41.0