sharlatan pushed a commit to branch go-team
in repository guix.
commit 2b79f9068d74c490fe54d0a2492fa775340340c8
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Feb 20 14:57:57 2025 +0000
gnu: Add go-github-com-libp2p-go-libp2p-kbucket.
* gnu/packages/ipfs.scm (go-github-com-libp2p-go-libp2p-kbucket): New
variable.
Change-Id: I4e34ae7f3e39a8d13f10e4dd0aad7f841f22b6da
---
gnu/packages/ipfs.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 6763f8eebd..a8a5df5bc1 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -1504,6 +1504,46 @@ their levels to be controlled individually.")
@url{https://github.com/libp2p/specs,libp2p}.")
(license license:expat)))
+(define-public go-github-com-libp2p-go-libp2p-kbucket
+ (package
+ (name "go-github-com-libp2p-go-libp2p-kbucket")
+ (version "0.6.5")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/libp2p/go-libp2p-kbucket")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "03xla0mhb17lh7syv0x4hvg2i0q1r8d6ym6rmjgf1z3z955znx6l"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:skip-build? #t ; cycles with Boxo
+ #:import-path "github.com/libp2p/go-libp2p-kbucket"
+ ;; src/github.com/libp2p/go-libp2p-asn-util/asn.go:12:12: pattern
+ ;; sorted-network-list.bin: cannot embed irregular file
+ ;; sorted-network-list.bin
+ #:embed-files #~(list "sorted-network-list\\.bin")
+ ;; Run portion of tests to bypath cycle with Boxo.
+ #:test-subdirs #~(list "peerdiversity/...")))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (propagated-inputs
+ (list go-github-com-ipfs-go-log-v2
+ go-github-com-libp2p-go-cidranger
+ go-github-com-libp2p-go-libp2p
+ go-github-com-libp2p-go-libp2p-asn-util
+ go-github-com-minio-sha256-simd
+ go-github-com-multiformats-go-multiaddr
+ go-github-com-multiformats-go-multihash))
+ (home-page "https://github.com/libp2p/go-libp2p-kbucket")
+ (synopsis "Kbucket implementation for use as a routing table")
+ (description
+ "Package kbucket implements a kademlia k-bucket routing table.")
+ (license license:expat)))
+
(define-public go-github-com-libp2p-go-libp2p-pubsub
(package
(name "go-github-com-libp2p-go-libp2p-pubsub")