From patchwork Tue Dec 3 13:15:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herman Rimm X-Patchwork-Id: 34490 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8D40927BBEB; Tue, 3 Dec 2024 13:18:02 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D035A27BBE2 for ; Tue, 3 Dec 2024 13:18:01 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tISmC-0007uE-F8; Tue, 03 Dec 2024 08:17:16 -0500 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 1tISm8-0007lk-VQ for guix-patches@gnu.org; Tue, 03 Dec 2024 08:17:13 -0500 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 1tISm7-0006lI-Nq for guix-patches@gnu.org; Tue, 03 Dec 2024 08:17:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=QGxF57t7p5mqwKvO+taMpUZ4puqjsUZQPZoYO8mh4fQ=; b=l8oEFqdEeiYo8RTkDYQ4Kh1CBUAZ6eF8p4Aero+d6LZxEMeAuAJ+o8/Er9xJk7Meyn2v4m2Se8VLTJDbyVA9hnPGGZxBvaSVQUXRvoODY1i9HJowpSawPk1EDf+vS18u0nxH9TVGAItkyYQsm3Mcawuh07cCxf7ihA8QuLwVpitd7pgjjptqHYCUiBpNbD+hM/CHDg0jKxEU/Sh03mZlr2Pq4psLfopBeSTmDq8CjW/MwS+TiPKGLXSlHaAbGos2eto7C7wzH5+Swt98uHt9EZND/mY3rMlGX5sWHvUtlRkbThzT8nsAlMnGVMTRJC8mh56qmYBEPnW6V1hzxDc8oQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tISm7-0005uz-H3 for guix-patches@gnu.org; Tue, 03 Dec 2024 08:17:11 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#72963] [PATCH go-team v2 20/22] gnu: Add go-github-com-muesli-ansi. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 03 Dec 2024 13:17:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72963 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72963@debbugs.gnu.org Received: via spool by 72963-submit@debbugs.gnu.org id=B72963.173323178422521 (code B ref 72963); Tue, 03 Dec 2024 13:17:11 +0000 Received: (at 72963) by debbugs.gnu.org; 3 Dec 2024 13:16:24 +0000 Received: from localhost ([127.0.0.1]:58667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tISlL-0005r5-Uo for submit@debbugs.gnu.org; Tue, 03 Dec 2024 08:16:24 -0500 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:38731 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tISl9-0005mS-F7 for 72963@debbugs.gnu.org; Tue, 03 Dec 2024 08:16:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1733231762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QGxF57t7p5mqwKvO+taMpUZ4puqjsUZQPZoYO8mh4fQ=; b=fwlxhvgzAnoJ8jaZXOmKydKcZlYhnDi5ZCkUytVpwnoGtg0HJMCt+kDW9br51fP5EDKTGf yqmJhhgkPwD9m+xckRCHVyLUO//4OJpAHj3bwUjOohjXXVAxsRbTVWJdEdJYTx8qSTr0Mw 1/87Mf2Qiy0uqObJ+9SyQq1FwOtpEnuLWfCz1q+oG0X4z6eVtri964abkwMGfaDRYxPynf bMaFMEosJBKH+cA2aQz/sfXOO+pbsm5HS7yYmMPFMBW5hHIJV4fvrjZiBF9sTAAHuMehgp UxeEL8O8daZL2J3iIHtd5IG13EKYmRTsOCsML3Jdevi59Ft7InB9xBmPH68htQ== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 29df76f0 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <72963@debbugs.gnu.org>; Tue, 3 Dec 2024 13:16:02 +0000 (UTC) Date: Tue, 3 Dec 2024 14:15:05 +0100 Message-ID: <0da9bb9e92dfce9e0f073a3bbbb2e88e1b0e089e.1733231503.git.herman@rimm.ee> X-Mailer: git-send-email 2.45.2 In-Reply-To: <7c01523b8cdf9969afe5f754d943c4f056c886e0.1733231503.git.herman@rimm.ee> References: <7c01523b8cdf9969afe5f754d943c4f056c886e0.1733231503.git.herman@rimm.ee> MIME-Version: 1.0 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: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches X-Patchwork-Original-From: Herman Rimm via Guix-patches via From: Herman Rimm Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (go-github-com-muesli-ansi): Add variable. --- gnu/packages/golang.scm | 89 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 3c6cea7219..5796c7d83c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5763,6 +5763,95 @@ (define-public go-github-com-bmatcuk-doublestar-v4 (list #:import-path "github.com/bmatcuk/doublestar/v4")))) +(define-public go-github-com-muesli-ansi + (package + (name "go-github-com-muesli-ansi") + (version "0.0.0-20230316100256-276c6243b2f6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/muesli/ansi") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1jr8kgn3vb72jmf4a8n52g876mfpbvk3310p8gsg7jkn338af4m9")))) + (build-system go-build-system) + (arguments (list #:import-path "github.com/muesli/ansi")) + (propagated-inputs (list go-github-com-mattn-go-runewidth)) + (home-page "https://github.com/muesli/ansi") + (synopsis "Raw ANSI sequence helpers") + (description "This package provides raw ANSI sequence helpers.") + (license license:expat))) + +(define-public go-github-com-muesli-reflow + (package + (name "go-github-com-muesli-reflow") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/muesli/reflow") + (commit (string-append "v" version)))) + (file-name (git-file-name "go-github-com-muesli-reflow" version)) + (sha256 + (base32 "09zcz2cqdwgj1ilya5pqwndryk6lansn87x63fcm8j1xn74vd2ry")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/muesli/reflow" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Workaround for go-build-system's lack of Go modules + ;; support. + (delete 'build) + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (propagated-inputs + (list go-github-com-mattn-go-runewidth)) + (home-page "https://github.com/muesli/reflow/") + (synopsis "Collection of methods helping to transform blocks of text") + (description + "This package provides a collection of ANSI-aware methods and io.Writers +helping you to transform blocks of text.") + (license license:expat))) + +(define-public go-github-com-muesli-termenv + (package + (name "go-github-com-muesli-termenv") + (version "0.15.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/muesli/termenv") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "19yhli6k79aqpra4djp0cl4q76mqxbc1f7in20y0dzhnjb7yz42p")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/muesli/termenv")) + (propagated-inputs + (list go-github-com-aymanbagabas-go-osc52-v2 + go-github-com-lucasb-eyer-go-colorful + go-github-com-mattn-go-isatty + go-github-com-mattn-go-runewidth + go-golang-org-x-sys)) + (home-page "https://github.com/muesli/termenv/") + (synopsis "Advanced styling options on the terminal") + (description "termenv lets you safely use advanced styling options on the +terminal. It gathers information about the terminal environment in terms of +its ANSI and color support and offers you convenient methods to colorize and +style your output, without you having to deal with all kinds of weird ANSI +escape sequences and color conversions.") + (license license:expat))) + (define-public go-github-com-olekukonko-tablewriter (package (name "go-github-com-olekukonko-tablewriter")