sharlatan pushed a commit to branch go-team in repository guix. commit 9c130fa2f4f6b4e10fae86be79444f924626d0dc Author: Sharlatan Hellseher <sharlata...@gmail.com> AuthorDate: Wed Feb 26 22:07:40 2025 +0000
gnu: Add go-github-com-libp2p-go-libp2p-http. * gnu/packages/ipfs.scm (go-github-com-libp2p-go-libp2p-http): New variable. Change-Id: I390fb6ce21c73d3d72b582de40adef8258256f6a --- gnu/packages/ipfs.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index 9b800b266c..6c59f2b0a6 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -1541,6 +1541,44 @@ their levels to be controlled individually.") Go with @url{https://github.com/libp2p/libp2p, LibP2P} streams.") (license license:expat))) +(define-public go-github-com-libp2p-go-libp2p-http + (package + (name "go-github-com-libp2p-go-libp2p-http") + (version "0.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libp2p/go-libp2p-http") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0v65xjj1ljpx9bfwqivgncc6imrykw1dd8m2zvaqiygv0dirzkzn")))) + (build-system go-build-system) + (arguments + (list + ;; XXX: Broken upstream, see + ;; <https://github.com/libp2p/go-libp2p-http/issues/94> + #:tests? #f + #:import-path "github.com/libp2p/go-libp2p-http" + ;; 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"))) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-libp2p-go-libp2p + go-github-com-libp2p-go-libp2p-gostream + go-github-com-multiformats-go-multiaddr)) + (home-page "https://github.com/libp2p/go-libp2p-http") + (synopsis "HTTP on top of libp2p") + (description + "Package p2phttp allows to serve HTTP endpoints and make HTTP requests +through @url{https://github.com/libp2p/libp2p, LibP2P} using Go's standard +@code{http} and @code{net} stacks.") + (license license:expat))) + (define-public go-github-com-libp2p-go-libp2p-kbucket (package (name "go-github-com-libp2p-go-libp2p-kbucket")