Subject: [bug#54560] [PATCH 06/47] gnu: Add go-github-com-dennwc-varint.

From: Leo Nikkilä <[email-masked]>
Date: Fri, 25 Mar 2022 15:31:30 +0200

* gnu/packages/golang.scm (go-github-com-dennwc-varint): New variable.
---
 gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ee22952fe7..078cb30cbc 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -9817,6 +9817,31 @@ (define-public go-github-com-asaskevich-govalidator
     (home-page "https://github.com/asaskevich/govalidator")
     (license license:expat)))
 
+(define-public go-github-com-dennwc-varint
+  ;; Test fixes haven't received a tag yet.
+  (let ((commit "2d9bdf4e8e69d9b1d5cbc270960451dda46c3231")
+        (revision "0"))
+    (package
+      (name "go-github-com-dennwc-varint")
+      (version (git-version "1.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/dennwc/varint")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0050g9z6s40j8h5m7sw121i0wb0yp6yipsp5xlqlx2hrwa7ha8l3"))))
+      (build-system go-build-system)
+      (arguments
+       '(#:import-path "github.com/dennwc/varint"))
+      (synopsis "Fast varint library for Go")
+      (description "This package provides an optimized implementation of
+protobuf's varint encoding/decoding.")
+      (home-page "https://github.com/dennwc/varint")
+      (license license:expat))))
+
 (define-public go-google-golang-org-protobuf
   (package
     (name "go-google-golang-org-protobuf")
-- 
2.34.0