guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#52915] [PATCH] gnu: Add go-github-com-mvdan-gofumpt.


From: Philip Kaludercic
Subject: [bug#52915] [PATCH] gnu: Add go-github-com-mvdan-gofumpt.
Date: Fri, 31 Dec 2021 14:54:44 +0000

* 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)))
-- 
2.34.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]