From 4bf8136664a982158b901206c441e92baf4cee08 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sun, 11 Aug 2024 00:09:54 +0300 Subject: gnu: Add go-github-com-libp2p-go-msgio. * gnu/packages/golang-xyz.scm (go-github-com-libp2p-go-msgio): New variable. Change-Id: I5222b247972a41877c84c40562a1d1af780f1b73 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 9420fa16c4..5c63c8fe17 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3427,6 +3427,43 @@ allocator. This is primarily useful for long lived buffers that usually sit emp ;; LICENSE-BSD. (license (list license:expat license:bsd-3)))) +(define-public go-github-com-libp2p-go-msgio + (package + (name "go-github-com-libp2p-go-msgio") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libp2p/go-msgio") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "005cdmkcgsfqlf8478wxyzmy5iixqa8fhjrbig912n8ngnqx1029")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/libp2p/go-msgio" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Replace when go-build-system supports nested path. + (replace 'check + (lambda* (#:key import-path tests? #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (propagated-inputs + (list go-github-com-gogo-protobuf + go-github-com-libp2p-go-buffer-pool + go-github-com-multiformats-go-varint + go-google-golang-org-protobuf)) + (home-page "https://github.com/libp2p/go-msgio") + (synopsis "Read and write length-delimited slices") + (description + "@code{go-msgio} implements functionality to read and write +length-delimited slices. It's helpful for building wire protocols.") + (license license:expat))) + (define-public go-github-com-logrusorgru-aurora (package (name "go-github-com-logrusorgru-aurora") -- cgit v1.2.3