diff mbox series

[bug#54560,34/47] gnu: Add go-github-com-json-iterator-go.

Message ID 20220325133211.5128-34-hello@lnikki.la
State New
Headers show
Series [bug#54560,01/47] gnu: Add go-google-golang-org-protobuf. | expand

Commit Message

Leo Nikkilä March 25, 2022, 1:31 p.m. UTC
* gnu/packages/golang.scm (go-github-com-json-iterator-go): New
variable.
---
 gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index a8f5bb7261..e71f70520d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10187,6 +10187,33 @@  (define-public go-github-com-josharian-intern
     (home-page "https://github.com/josharian/intern")
     (license license:expat)))
 
+(define-public go-github-com-json-iterator-go
+  (package
+    (name "go-github-com-json-iterator-go")
+    (version "1.1.12")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/json-iterator/go")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1c8f0hxm18wivx31bs615x3vxs2j3ba0v6vxchsjhldc8kl311bz"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/json-iterator/go"))
+    (propagated-inputs (list go-github-com-davecgh-go-spew
+                             go-github-com-google-gofuzz
+                             go-github-com-modern-go-concurrent
+                             go-github-com-modern-go-reflect2))
+    (native-inputs (list go-github-com-stretchr-testify))
+    (synopsis "Drop-in replacement of @code{encoding/json}")
+    (description "High-performance 100% compatible drop-in replacement
+of @code{encoding/json}.")
+    (home-page "https://github.com/json-iterator/go")
+    (license license:expat)))
+
 (define-public go-github-com-julienschmidt-httprouter
   (package
     (name "go-github-com-julienschmidt-httprouter")