From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uEdxKsmnG2NznwAAbAwnHQ (envelope-from ) for ; Fri, 09 Sep 2022 22:53:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AEeKKcmnG2NktQAAG6o9tA (envelope-from ) for ; Fri, 09 Sep 2022 22:53:29 +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 5E11510822 for ; Fri, 9 Sep 2022 22:53:29 +0200 (CEST) Received: from localhost ([::1]:36506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWl0C-0008EQ-Jh for larch@yhetil.org; Fri, 09 Sep 2022 16:53:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWkyo-0006kN-VL for guix-patches@gnu.org; Fri, 09 Sep 2022 16:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47106) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWkyo-0003Tg-Mb for guix-patches@gnu.org; Fri, 09 Sep 2022 16:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWkyo-0004hz-GZ for guix-patches@gnu.org; Fri, 09 Sep 2022 16:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55903] [PATCH v9 27/42] gnu: Add go-github-com-niemeyer-pretty. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Sep 2022 20:52:02 +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.166275667617935 (code B ref 55903); Fri, 09 Sep 2022 20:52:02 +0000 Received: (at 55903) by debbugs.gnu.org; 9 Sep 2022 20:51:16 +0000 Received: from localhost ([127.0.0.1]:35748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWkxp-0004bk-Jy for submit@debbugs.gnu.org; Fri, 09 Sep 2022 16:51:16 -0400 Received: from knopi.disroot.org ([178.21.23.139]:59740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWkxO-0004Y0-UH for 55903@debbugs.gnu.org; Fri, 09 Sep 2022 16:50:35 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 6E80F42BFD; Fri, 9 Sep 2022 22:50:34 +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 UTF8SMTP id nWr1gxGCCcFm; Fri, 9 Sep 2022 22:50:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662756619; bh=a7BBsUfqyBLiq38WA17/92jf1mtHroWF0hpGxdIWMvY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kaUkNTs2Y21XZ2Jh8M2zUf8EpTUczvREPRYUMzCWXjAqJLgNZWso2jcbw09hi6UwH f6KRhAczh+Wyv27TYFZVikC7HYOshEF1s5sJRgkyoTYooXLqY05+VD8aJR//U/SGMl SP7udhD/G2TFVLc1yDMzunNQkmLYQMMTxTOUfSsylxMBXBtZY3mHPTzlDnibSIOx2u aIxeCWn7hHVM/Wk/wAS7Evkkz8XqAR8YjRuEFkksO2jdXIeO1HkHKjPgCbx2xL9RB0 5XGqtfiBjV1s8BnZR+SoMLscro5+Co6ijxOwQnVasoYSvmtEbYL1jEXci8e119tk5E X5F8SCFl/e/Ig== Date: Fri, 9 Sep 2022 21:49:51 +0100 Message-Id: <20220909205006.13937-27-paren@disroot.org> In-Reply-To: <20220909205006.13937-1-paren@disroot.org> References: <20220909205006.13937-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: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( 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=1662756809; 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=rzjnkGNuV4JIS0cH56qytKu5ezn3SMDVYcP0SGWhf3U=; b=N+haPNR08zvaqIi/F9zIIXeQD2SI/iJzpYrKqCktaPzRwy+8yDHjGFJWtCgA2qYv3nI1eA 6iaZo8zEuEhrd8f5Nm6d5hZP/FWlApIR+V7oiDnditO0E4od6P0WR9UHTQLxzpQZx1hWde ZOOmjD6c/Ylff5s2AQ0AJ0xje/1CctIsCnEC1GWEplqWehbJtlk1EpqCdHB8uN/Q/YKrIE qL7xy28SHd5IEd387MGb3ByZ2pGUIiZPBNKjZdIHAk2IfwQkmoYVl/fP7gOueQn7hBEg56 LCe/iacf3JKZZ/bJi1ZYFh8Q5NbGj5UDdUpKXhRJwR5z+hVVDxIOLXdc5mwy1Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662756809; a=rsa-sha256; cv=none; b=Y++XUZZ4GKwH77nzAHlcXDH2dAWodhoMgZz6QQiMye9HgdfVGWMtxbwgixeJzKkiTrIzS0 FkDnJA/DDgN5Ta62fte4rbjXoz/JgUzvZRd5ZGMIiLZ0SbL0ZFj1D8PxtsdG6UhzuULPSW 84akD04oOuQGLpV6Y6OeVKAIlRqySXB+TKCHDWA/nJdsKd1iJ6GdecQWBEmz7/6BVF+92r 0IVagcHTHn4Ts27P4rUo4gOYzyUqsbSk4QfZnhFY/segH04KtFcXFZMkACqnFXRP59F602 3Z+idoYEgB7o0EEFGcQxPNagLB23hR80ojQ706Y7WqnE6U5tcZNdBZwzygArxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=kaUkNTs2; 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: -0.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=kaUkNTs2; 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: 5E11510822 X-Spam-Score: -0.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: dOdYg6RZViYq From: "(unmatched-parenthesis" * gnu/packages/golang.scm (go-github-com-niemeyer-pretty): New variable. --- gnu/packages/golang.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c3fed8362e..94edf086e3 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -10710,3 +10710,36 @@ (define-public go-github-com-emersion-go-smtp "The smtp package implements the Simple Mail Transfer Protocol as defined by 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 + "The pretty package provides pretty-printing for Go values. This is +useful during debugging, to avoid wrapping long output lines in the +terminal.") + (license license:expat))) -- 2.37.3