aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLeo Nikkilä <hello@lnikki.la>2024-08-12 17:04:47 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-08-25 20:46:45 +0100
commite8993a66d23ecea63ccb8bf93a54aa64668b825a (patch)
treed4e5800308c183b0e319d4ab9a7416a5861e817d /gnu
parentbf7ba1ef8ca6e7fe47ea25b152fabac2310ed408 (diff)
downloadguix-e8993a66d23ecea63ccb8bf93a54aa64668b825a.tar.gz
guix-e8993a66d23ecea63ccb8bf93a54aa64668b825a.zip
gnu: Add go-github-com-dennwc-varint.
* gnu/packages/golang-xyz.scm (go-github-com-dennwc-varint): New variable. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Change-Id: I2e0b00e09fa20b0047e29ada307c1b3eb8c90a74
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang-xyz.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 78bd492bfa..e925eed408 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1874,6 +1874,38 @@ gist (https://gist.github.com/kballard/272720).")
more complicated parallel cases.")
(license license:expat)))
+(define-public go-github-com-dennwc-varint
+ (package
+ (name "go-github-com-dennwc-varint")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dennwc/varint")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0w6fnh7i55155cv55cjdqq436zb2y08rglxvz58vv67bb4hj7dkk"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/dennwc/varint"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-failing-tests
+ (lambda* (#:key tests? import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (substitute* (find-files "." "\\_test.go$")
+ ;; XXX: varint_test.go:94: unexpected error: -11.
+ (("TestUvarint") "OffTestUvarint"))))))))
+ (home-page "https://github.com/dennwc/varint")
+ (synopsis "Fast varint library for Golang")
+ (description
+ "This package provides an optimized implementation of protobuf's varint
+encoding/decoding. It has no dependencies.")
+ (license license:expat)))
+
(define-public go-github-com-dimchansky-utfbom
(package
(name "go-github-com-dimchansky-utfbom")