From patchwork Fri Dec 31 14:54:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Kaludercic X-Patchwork-Id: 35851 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 B3D8727BBEA; Fri, 31 Dec 2021 14:56:19 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,TVD_SPACE_RATIO,URIBL_BLOCKED autolearn=unavailable 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 7A14927BBE9 for ; Fri, 31 Dec 2021 14:56:19 +0000 (GMT) Received: from localhost ([::1]:41080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3JKM-0001yc-I9 for patchwork@mira.cbaines.net; Fri, 31 Dec 2021 09:56:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3JK6-0001yE-Ap for guix-patches@gnu.org; Fri, 31 Dec 2021 09:56:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3JK6-0004Ep-1N for guix-patches@gnu.org; Fri, 31 Dec 2021 09:56:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n3JK5-0001GS-TV for guix-patches@gnu.org; Fri, 31 Dec 2021 09:56:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52915] [PATCH] gnu: Add go-github-com-mvdan-gofumpt. Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 31 Dec 2021 14:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52915 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52915@debbugs.gnu.org Cc: Philip Kaludercic X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16409625042973 (code B ref -1); Fri, 31 Dec 2021 14:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 31 Dec 2021 14:55:04 +0000 Received: from localhost ([127.0.0.1]:55473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3JJA-0000ls-Hg for submit@debbugs.gnu.org; Fri, 31 Dec 2021 09:55:04 -0500 Received: from lists.gnu.org ([209.51.188.17]:42596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3JJ8-0000lk-Fl for submit@debbugs.gnu.org; Fri, 31 Dec 2021 09:55:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3JJ8-0001px-4I for guix-patches@gnu.org; Fri, 31 Dec 2021 09:55:02 -0500 Received: from mout01.posteo.de ([185.67.36.65]:37691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3JJ5-0002jD-Qe for guix-patches@gnu.org; Fri, 31 Dec 2021 09:55:01 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id AD8E7240027 for ; Fri, 31 Dec 2021 15:54:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1640962497; bh=XlI2e2K+zzKy9V5TfWZeB41moiCuSZdptTNFIoXspc8=; h=From:To:Cc:Subject:Date:From; b=JlU9HQ87Atw8jJx9loxv1KDD4gJyHERQtUBMpZC5jpNiM3iuZ0Svz6gX+0ZRjIO/A i3htcpU7l42WsTXJYMsPyjhKuejvQGe1TSpSCJZhipqSNVfbVj6kFyrNZrHkuUAQmJ Zu3B/evyFbnzWcQH1pqk3VCiDaqiKwFAGYagPuqps8fhY129fbpAc5Uupd5p/HCLma IsV+9dUo7tfWBniXf0uKG23kp/lmYjdV+HRZR3egYENKib8iVQLZNniaKucUBV7vpd 8EPFqdsHaN67jPkhvdE6ykGmQmovUs2NM0+dvqURQ6NYiSzkhwpLednqiyoqn7Gu3n oI8E+fEO0OaMg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JQSq51qTBz9rxF; Fri, 31 Dec 2021 15:54:57 +0100 (CET) From: Philip Kaludercic Date: Fri, 31 Dec 2021 14:54:44 +0000 Message-Id: <20211231145444.5676-1-philipk@posteo.net> MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, TVD_SPACE_RATIO=0.001 autolearn=unavailable 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * golang.scm (go-github-com-mvdan-gofumpt): New variable. --- gnu/packages/golang.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 1223887bf2..d289bd54ad 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8846,3 +8846,35 @@ (define-public go-github-com-arceliar-ironwood @url{https://github.com/yggdrasil-network/yggdrasil-go,Yggdrasil}, but it may be useful for other network applications.") (license license:mpl2.0))) + +(define-public go-github-com-mvdan-gofumpt + (package + (name "go-github-com-mvdan-gofumpt") + (version "0.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mvdan/gofumpt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rczlicfvvhvx8l3ngcd04mjam80mb5ay0vrim9w2max04kyairn")))) + (build-system go-build-system) + (arguments '(#:import-path "github.com/mvdan/gofumpt")) + (propagated-inputs + `(("go-golang-org-x-tools" ,go-golang-org-x-tools) + ("go-golang-org-x-sys" ,go-golang-org-x-sys) + ("go-golang-org-x-mod" ,go-golang-org-x-mod) + ("go-github-com-rogpeppe-go-internal" + ,go-github-com-rogpeppe-go-internal) + ("go-github-com-google-go-cmp" ,go-github-com-google-go-cmp) + ("go-github-com-frankban-quicktest" + ,go-github-com-frankban-quicktest))) + (home-page "https://github.com/mvdan/gofumpt") + (synopsis "gofumpt") + (description + "Enforce a stricter format than @code{gofmt}, while being backwards compatible. +That is, @code{gofumpt} is happy with a subset of the formats that @code{gofmt} +is happy with.") + (license license:bsd-3)))