sharlatan pushed a commit to branch go-team
in repository guix.

commit c4308b95476adf67870af6bedc98cfdabc6f0004
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Feb 26 22:02:42 2025 +0000

    gnu: Add go-github-com-libp2p-go-libp2p-gostream.
    
    * gnu/packages/ipfs.scm (go-github-com-libp2p-go-libp2p-gostream): New 
variable.
    
    Change-Id: I91a3adb3bff13685d0a7e35637e9bfb391b03c2d
---
 gnu/packages/ipfs.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 3e03d18f9c..9b800b266c 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -1505,6 +1505,42 @@ their levels to be controlled individually.")
 @url{https://github.com/libp2p/specs,libp2p}.";)
     (license license:expat)))
 
+(define-public go-github-com-libp2p-go-libp2p-gostream
+  (package
+    (name "go-github-com-libp2p-go-libp2p-gostream")
+    (version "0.6.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/libp2p/go-libp2p-gostream";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1zq5vhjj590azc1gwwiyqilf9ifxp8nz4hziz0fxs5ly2xhjj1mw"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      ;; XXX: Broken upstream, see
+      ;; <https://github.com/libp2p/go-libp2p-gostream/issues/90>
+      #:tests? #f
+      #:import-path "github.com/libp2p/go-libp2p-gostream"
+      ;; 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-multiformats-go-multiaddr))
+    (home-page "https://github.com/libp2p/go-libp2p-gostream";)
+    (synopsis "Golang @code{net} wrappers for libp2p")
+    (description
+     "This package provides a replacement of the standard @code{net} stack in
+Go with @url{https://github.com/libp2p/libp2p, LibP2P} streams.")
+    (license license:expat)))
+
 (define-public go-github-com-libp2p-go-libp2p-kbucket
   (package
     (name "go-github-com-libp2p-go-libp2p-kbucket")

Reply via email to