From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kFLQC2c3zmQHgwEASxT56A (envelope-from ) for ; Sat, 05 Aug 2023 13:49:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EJuBCmc3zmTS8wAAG6o9tA (envelope-from ) for ; Sat, 05 Aug 2023 13:49:59 +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 D33D15AC1F for ; Sat, 5 Aug 2023 13:49:58 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=qcTuv9SH; 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=1691236198; 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=uH5//AiyysznoDcurmNuTI8DOgtjBPaLeLHjztUr2wo=; b=MpkGx8Wt+FVpxzP+W5XUsq5+0T/qgxHE1Za/13nU6klBDvfDvhqP2GY2LSuVIu8AuGMDdJ D4tbnos6BxNkOJ9CdNJbtG3zNGHwr0S1+C2gjc86ouxtb9s3ngsVosR4IEL4c4kA/it1Jo fDiLncFn2VgXPrz+DNmUrn6ThXB5PYqGvFMq2zhbHCbiEaNIda6HnzmMaXyTi+8YkT1tSO C8wgdsDcQPkX828duVwHQvg19JxlEBXxvQUKmY+jjtBqjilnA1oS5JXhD0sKVcifmHACY3 ik3XdYC0fTdTeHmfSM3/Zj74x/Vz2jaGRf+7poiRt4O1Tj15eTlToobCKMoEAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691236198; a=rsa-sha256; cv=none; b=IRnRSlPfPZWGaiFPqYSXXaiWRs18R0kihwAL6HYE8ujeyx597Rk0EmIrMLNDxH9iy2DE7a U6B8hVA7ec9lnXYQXmaepntznsFaQlNGR8GxfHIEZ6BOCkq4r3BKVY5sznUmSpELsRb26h Qdj1IEVwY2TUZOVu8650cXMSH0uAuTOdmZ34fMgpLr6JUhWrt2r/qiIuMb/GVaBGs1yYyS /woOLO7dAO3GpsDbQhPKKixWUfyrzV3wOpjJKjpzLn3PwAqg5JnLLepm/sU0/w3ukIP8Bh WhLj4Jrxs+abISPUstaDn/iPKdoNCEREb6Eenacncuou6yGPsvc1C7kPJOiAsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=qcTuv9SH; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSFmQ-00086Q-NS; Sat, 05 Aug 2023 07:49:10 -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 1qSFmN-00084l-W9 for guix-patches@gnu.org; Sat, 05 Aug 2023 07:49:08 -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 1qSFmN-0006X9-OC for guix-patches@gnu.org; Sat, 05 Aug 2023 07:49:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSFmN-0000vw-KT for guix-patches@gnu.org; Sat, 05 Aug 2023 07:49:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65074] [PATCH v2 13/13] gnu: Add scc Resent-From: Fries Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Aug 2023 11:49:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65074 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65074@debbugs.gnu.org Cc: Fries Received: via spool by 65074-submit@debbugs.gnu.org id=B65074.16912361393474 (code B ref 65074); Sat, 05 Aug 2023 11:49:07 +0000 Received: (at 65074) by debbugs.gnu.org; 5 Aug 2023 11:48:59 +0000 Received: from localhost ([127.0.0.1]:55967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSFmE-0000tt-Lg for submit@debbugs.gnu.org; Sat, 05 Aug 2023 07:48:59 -0400 Received: from mail-40141.protonmail.ch ([185.70.40.141]:53333) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSF3F-0005Qz-5y for 65074@debbugs.gnu.org; Sat, 05 Aug 2023 07:02:29 -0400 Date: Sat, 05 Aug 2023 11:02:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1691233343; x=1691492543; bh=uH5//AiyysznoDcurmNuTI8DOgtjBPaLeLHjztUr2wo=; 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=qcTuv9SHv1RwabVL7pwkO633SEMRsiXqa1P/XAv1lj15fUb4gwLuj5nuPFkTCPzIZ GKvUvVkUOWmoAtlSO9ZJGc0rxwCeJ5kHP/FaePoq4U6rSfHRDad7g8GCoUUPQvBID0 DCycTGro7fGy/67pF/lQuH1XSl67KgM08q0Ngx8bzfhvXOQ/lYD2YqqM5QAjQZ0See 6GGIMp9olc6fANR3QlVcxf2yXtL4JvIck+U17yttGeGQXjumHDIDAkFEOR9zi3qm1S STxLxJdvLNFXzY2tWLWOB6Z+PNySmDSCQtuvrxZoiKgMRv5O+LNH0UqFjExEAIDtup ivzARUDADnkTg== Message-ID: <56c64b174ccbbabb85fb1895a68f81df69efe39b.1691233116.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 X-Mailman-Approved-At: Sat, 05 Aug 2023 07:48:47 -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: D33D15AC1F X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.65 X-Spam-Score: -6.65 X-TUID: TphuwO1PdMZu * 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 =C2=A9 2021 lu hui ;;; Copyright =C2=A9 2021, 2022 Foo Chuan Wei ;;; Copyright =C2=A9 2022 Michael Rohleder +;;; Copyright =C2=A9 2023 Fries ;;; ;;; 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+))) =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) + (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 e= stimation.") + (license license:expat))) + (define-public the-silver-searcher (package (name "the-silver-searcher") --=20 2.41.0