sharlatan pushed a commit to branch go-team in repository guix. commit 2374f356d7a7f559c76c4215d22a2ee1ad635041 Author: Sharlatan Hellseher <sharlata...@gmail.com> AuthorDate: Thu Feb 20 15:07:28 2025 +0000
gnu: Add go-github-com-libp2p-go-libp2p-xor. * gnu/packages/ipfs.scm (go-github-com-libp2p-go-libp2p-xor): New variable. Change-Id: Ibb22c86c02503376c086c4e912ed264ae9015ff2 --- gnu/packages/ipfs.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index a8a5df5bc1..158fa47791 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -1679,6 +1679,36 @@ systems.") "This package provides a testing toolbox for go-libp2p modules.") (license (list license:expat license:asl2.0)))) +(define-public go-github-com-libp2p-go-libp2p-xor + (package + (name "go-github-com-libp2p-go-libp2p-xor") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libp2p/go-libp2p-xor") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0p4mwz0q0zbj8p1s04hmpy0w0znfxz3b7x28dv7cz0cg6wqvfqvk")))) + (build-system go-build-system) + (arguments + (list + ;; Do not build or test to bypass cycle with Boxo. + #:skip-build? #t + #:tests? #f + #:import-path "github.com/libp2p/go-libp2p-xor")) + (propagated-inputs + (list go-github-com-libp2p-go-libp2p-kbucket)) + (home-page "https://github.com/libp2p/go-libp2p-xor") + (synopsis "Xor Trie implementation for libp2p") + (description + "This package implements XOR tries. An XOR trie is a trie for +equal-length bit strings. XOR tries support efficient set operations, as well +as distance-based operations with respect to the XOR metric.") + (license license:expat))) + (define-public go-github-com-whyrusleeping-cbor-gen (package (name "go-github-com-whyrusleeping-cbor-gen")