From e8993a66d23ecea63ccb8bf93a54aa64668b825a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leo=20Nikkil=C3=A4?= Date: Mon, 12 Aug 2024 17:04:47 +0100 Subject: [PATCH] gnu: Add go-github-com-dennwc-varint. * gnu/packages/golang-xyz.scm (go-github-com-dennwc-varint): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: I2e0b00e09fa20b0047e29ada307c1b3eb8c90a74 --- 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 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")