From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0PXjGfzqpGLXGAEAbAwnHQ (envelope-from ) for ; Sat, 11 Jun 2022 21:20:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6HTpGPzqpGKKTwEAG6o9tA (envelope-from ) for ; Sat, 11 Jun 2022 21:20:28 +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 F0C15B793 for ; Sat, 11 Jun 2022 21:20:27 +0200 (CEST) Received: from localhost ([::1]:35994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o06ep-0005tL-0A for larch@yhetil.org; Sat, 11 Jun 2022 15:20:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o06ch-0002OL-V1 for guix-patches@gnu.org; Sat, 11 Jun 2022 15:18:15 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60150) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o06ch-0007hU-MU for guix-patches@gnu.org; Sat, 11 Jun 2022 15:18:15 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o06ch-00051g-Io for guix-patches@gnu.org; Sat, 11 Jun 2022 15:18:15 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55903] [PATCH 33/41] gnu: Add go-github-com-niemeyer-pretty. Resent-From: "(unmatched-parenthesis" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Jun 2022 19:18:15 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55903 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55903@debbugs.gnu.org Cc: "\(unmatched-parenthesis" Received: via spool by 55903-submit@debbugs.gnu.org id=B55903.165497507219008 (code B ref 55903); Sat, 11 Jun 2022 19:18:15 +0000 Received: (at 55903) by debbugs.gnu.org; 11 Jun 2022 19:17:52 +0000 Received: from localhost ([127.0.0.1]:53999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o06cK-0004wQ-An for submit@debbugs.gnu.org; Sat, 11 Jun 2022 15:17:52 -0400 Received: from knopi.disroot.org ([178.21.23.139]:53832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o06c9-0004tx-NC for 55903@debbugs.gnu.org; Sat, 11 Jun 2022 15:17:42 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 297CE43CAB; Sat, 11 Jun 2022 21:17:41 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A_bDuWPY3gKU; Sat, 11 Jun 2022 21:17:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1654975044; bh=BUHF7lqs6pHPf0VrWVh5kMT1q16052DjS/bIfdezjes=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Q+dphCmdUJGkuQBia3FPCy1BqcHf2GgAczwa5DeHTgz3xm582KUqg4tAtTr/mGr4S Z8VhO4KKQ5bbKVxaKWKRPDtH4gp9eWBGDj09Pfl2LDxQKD1plaCf0Hvxtp4G+j7INz CxX6HKJQuz7aJGVg5K30dyTgj+xxbJfo24n1D5zSJ3Z7bR6ZVmtSNhCxo8EhbM+Lh8 cjKhlSp5qteK3EuFZZywWVUBYcnB+LuF/sJHpssTmvdzOI4+YAOhUEVplOGYgdf9PZ Ub7pKz7e9/VpUbVbY2TTDZBOHbnN2yaIqCfBmM2+IZpPOXZu+re84JdIK13N5C6kqj dXoF3kzzWJCWw== Date: Sat, 11 Jun 2022 20:16:45 +0100 Message-Id: <20220611191653.15471-33-paren@disroot.org> In-Reply-To: <20220611191653.15471-1-paren@disroot.org> References: <20220611191653.15471-1-paren@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: "\(unmatched-parenthesis" X-ACL-Warn: , "\(unmatched-parenthesis via Guix-patches" From: "\(unmatched-parenthesis via Guix-patches" via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654975228; 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-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=TB2Sbf9wzcQGz3ZaMB6k5CBMiaikQVWAit76e3BXrvY=; b=htZ43DKKkvIbAy7NHv7Sv9m30YdtWTE36apO9cevOe2ut4MR3DfeFYBNeWhu8/vBaPAymF nDKuIeFMbceFLy755SrsYTWGPo3nP6GJX9XW/oEr5wc07ObPxH5/xFHnG8XjkvCw3Vc6sb bnhsI0OE9XSc3ooogaEjtBxxHZP2DZnYc5kKMgCFR7YW1xvCskPv/gOV20KuIcIVOCfscz 8+QNsGl4TtxOaWI0skovWWf13fr3LmVXvCvF6p95d6tSacbt6GWr1gUVONlY/jw8e/bW5s XicOajU8HxjNK4IPN5EwtRJAPbguReb3GATLIHAJAACmdzE11JNhper63eeIfg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654975228; a=rsa-sha256; cv=none; b=I+mLONJeMHS3QaBFkME3OGPAPqF4Rwl5wQWRk/Y7Xldly/K52rtjPoLVIUtMWRnBLbe1ek 2dm0OwjZ5gSr102qoA6DmQA96exnwYHWT4tAbcRnxNbk83vFy5Uj33UKo1cHJecysY0kIM sQdrmw1jw6P29aM8/tpMCjIaeWnJ7xofVD5P8Hv2iGsLnvcMKN7QSQZwC8z+Lf/8OG1qjn 57JgKTwGguBZ4B+5fiWFwD/CPckba6JRWbFtHvR+T6/goo1MzntaE0EQLfYND1HjxxemzU RAznpvsKYAewQ4JGAxhrm5Iq1wNJZF1dSNeUbZIuSIjfIS4WUcecXZ7LgNEFUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=Q+dphCmd; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -1.48 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=Q+dphCmd; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: F0C15B793 X-Spam-Score: -1.48 X-Migadu-Scanner: scn0.migadu.com X-TUID: yn9DjV5gDK/e * gnu/packages/golang.scm (go-github-com-niemeyer-pretty): New variable. --- gnu/packages/golang.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 00b6945e10..61a7ee8edd 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -56,6 +56,7 @@ (define-module (gnu packages golang) #:use-module (guix utils) #:use-module ((guix build utils) #:select (alist-replace)) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix packages) #:use-module (guix build-system gnu) @@ -10566,3 +10567,36 @@ (define-public go-github-com-emersion-go-smtp "Package smtp implements the Simple Mail Transfer Protocol as defined in @url{https://rfc-editor.org/rfc/rfc5321.html,RFC 5321}.") (license license:expat))) + +(define-public go-github-com-niemeyer-pretty + (package + (name "go-github-com-niemeyer-pretty") + (version "0.0.0-20200227124842-a10e7caefd8e") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/niemeyer/pretty") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1jmazh4xzaa3v6g46hz60q2z7nmqs9l9cxdzmmscn3kbcs2znq4v")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/niemeyer/pretty" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'int-to-string-with-rune + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* "formatter.go" + (("s \\+= string\\(i\\)") + "s += string(rune(i))")))))))) + (propagated-inputs (list go-github-com-kr-text)) + (home-page "https://github.com/niemeyer/pretty") + (synopsis "Pretty-print Go values") + (description + "Package pretty provides pretty-printing for Go values. This is +useful during debugging, to avoid wrapping long output lines in the +terminal.") + (license license:expat))) -- 2.36.1