From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0CA0CBdm6mKb/wAAbAwnHQ (envelope-from ) for ; Wed, 03 Aug 2022 14:12:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OF07Bxdm6mLPmgAAG6o9tA (envelope-from ) for ; Wed, 03 Aug 2022 14:12:07 +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 DCEFF136C5 for ; Wed, 3 Aug 2022 14:12:06 +0200 (CEST) Received: from localhost ([::1]:41842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJDEM-0005ts-24 for larch@yhetil.org; Wed, 03 Aug 2022 08:12:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJD9n-0008G9-An for guix-patches@gnu.org; Wed, 03 Aug 2022 08:07:25 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56752) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJD9l-0003EE-IP for guix-patches@gnu.org; Wed, 03 Aug 2022 08:07:22 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJD9l-0003BZ-Ec for guix-patches@gnu.org; Wed, 03 Aug 2022 08:07:21 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56935] [PATCH 27/41] gnu: Add go-github-com-niemeyer-pretty. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Aug 2022 12:07:21 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56935 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56935@debbugs.gnu.org Cc: "\(unmatched-parenthesis" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165952842311778 (code B ref -1); Wed, 03 Aug 2022 12:07:21 +0000 Received: (at submit) by debbugs.gnu.org; 3 Aug 2022 12:07:03 +0000 Received: from localhost ([127.0.0.1]:46423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJD9S-00033f-NP for submit@debbugs.gnu.org; Wed, 03 Aug 2022 08:07:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:49320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJD9M-00030z-Ck for submit@debbugs.gnu.org; Wed, 03 Aug 2022 08:06:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJD9M-00081r-7F for guix-patches@gnu.org; Wed, 03 Aug 2022 08:06:56 -0400 Received: from knopi.disroot.org ([178.21.23.139]:48960) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJD9J-00035Z-5c for guix-patches@gnu.org; Wed, 03 Aug 2022 08:06:55 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 03EE141942; Wed, 3 Aug 2022 14:06:39 +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 fF-seLY6NZAl; Wed, 3 Aug 2022 14:06:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1659528291; bh=rcM5HXPXavJnDTyE19HVOVlRD4s6vZh7WxSx1zr3i2Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=S0jrbDXvryH06pSipZijQ6eUDr5JpjX9hVSNlJO3Ut7K/87rNUV3Ot7CvhnRzeb/k dVARKgUtsMhHHhvpQfq+OhpKZUnfx6ojWYwkLp3LL1f3kJ+anu0fN0WANR3c6v6KeH H2pCk1/accgeQKdOrj2oRxuUjYL96uqxQIkxcmu7j8QWsIhof71XQqXAtPJSfYdxnF MTBfByTRBYwkNOuYMjD8hE1al1/AqmvDVHXeBA4KxoqAYCIJtEi0yg75DJYjGO15Kk sZGveuLKuU8rXifI3xIUhTwUrzXg01RUJQjw9yGaFvVcP+ez/0A2Vv5pI89MlC5iRo oJjJtgelDOS/A== Date: Wed, 3 Aug 2022 13:04:25 +0100 Message-Id: <20220803120439.5108-27-paren@disroot.org> In-Reply-To: <20220803120439.5108-1-paren@disroot.org> References: <20220803120439.5108-1-paren@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1659528726; 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=PNaWVF5AVbl4W/TLCoxqAiRJvoJULtXbVtxAq/DNIpA=; b=YZmp4a3IEpTjUjseStyG60Frfd3hg3lobXrPdPPQCwhuGcW0pKFWy3RogXCNcsnSYgbcQM het9ldo6FCN1GxQJ7kdeMIK3wzjRkl9CiNB8tFYSr26mCrDNxEoGeLReVH1wVqXDvDBlZb R+s5tKdkadDxB91aIXtK7OsQ3IV8iAFPmA5Wq2XmMuFWYHcG9qPDGikvqIicuckTYjcBwD V7Etx6M8hZBVVjnp/j1FlrQieRTAeuenlvJlHGfnUh2o1868SBv6wD7JNl6V0Qj5mahP81 p1L5IxZ2NT3t215CmyS+mnC3bbpQ6HBnmszzZUJCL/iN2oF7NpSLbLdp1wmPsA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659528726; a=rsa-sha256; cv=none; b=UORJkvB2lx6aATsubVT0jTeCPjQ1pOGQc/YDgwkoipjX//wz+RjFnHwvrnI1cOuf0nbpNS OxGioIicf15xZffaB3BgPWkDazq9EiyliwnVq0wGjPoegwSYUtrJDJw7NcP7G4CVD/wkY2 5Dhf0lwrXO3F64qxGeo2p/ggk7PbV0xTjzGvzT5dva0cz4ZwUkFtIukVe8D/Yv4SP/mSVw jnQelAA5Cf8CbeVRQb4MLEZ4T5k6zc4za5dYppkCaq2ofDPetdfkVKKV0jvR6TgFLdgcdL Mc5ZgTtEhSAl1iuvMKF698pe0KPrqWYZJeGe9kpzlWaXOCZ1FXgzoO8/aZnKRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=S0jrbDXv; 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: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=S0jrbDXv; 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: DCEFF136C5 X-Spam-Score: -2.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: nTclMvH8zFUz 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 85a210df66..41bbb3c228 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -10606,3 +10606,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.1