guix-patches
[Top][All Lists]
Advanced

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

[bug#72874] [PATCH 5/8] gnu: Add go-zgo-at-jfmt.


From: gemmaro
Subject: [bug#72874] [PATCH 5/8] gnu: Add go-zgo-at-jfmt.
Date: Fri, 30 Aug 2024 00:14:07 +0900

* gnu/packages/golang-xyz.scm (go-zgo-at-jfmt): New variable.

Change-Id: I3b8d37bf30dd4f1a1da657c5279a5e6efab55aea
---
 gnu/packages/golang-xyz.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index cc9f4e56d9..1c37fe0355 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6906,6 +6906,38 @@ (define-public go-mvdan-cc-editorconfig
 defined in @url{https://editorconfig.org/,https://editorconfig.org/}.";)
     (license license:bsd-3)))
 
+(define-public go-zgo-at-jfmt
+  (package
+    (name "go-zgo-at-jfmt")
+    (version "0.0.0-20240531161922-a97493b8db3c")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/arp242/jfmt";)
+             (commit (go-version->git-ref version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0vm38kp46m1drxx16prbjwrc575vv7819ci16p96i0mksnnlfxj3"))
+       (modules '((guix build utils)))
+       ;; TODO: some tests fail.
+       (snippet '(begin
+                   (delete-file "testdata/escape.json")
+                   (delete-file "testdata/toml-test-key-escapes.json")
+                   (delete-file
+                    "testdata/toml-test-string-quoted-unicode.json")))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "zgo.at/jfmt"))
+    (propagated-inputs (list go-zgo-at-zstd go-zgo-at-zli go-zgo-at-termtext))
+    (home-page "https://github.com/arp242/jfmt";)
+    (synopsis "JSON formatter written in Go")
+    (description
+     "@samp{jfmt} is a JSON formatter.  It tries to be a little smarter
+about what should be on a single line, and so on.")
+    (license license:expat)))
+
 (define-public go-zgo-at-runewidth
   (package
     (name "go-zgo-at-runewidth")
-- 
2.45.2






reply via email to

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