unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#70955] [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns.
@ 2024-05-15  6:13 Artyom V. Poptsov
  2024-05-15  6:17 ` [bug#70955] [PATCH 1/6] gnu: Add go-github-com-pion-logging Artyom V. Poptsov
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Artyom V. Poptsov @ 2024-05-15  6:13 UTC (permalink / raw)
  To: 70955; +Cc: Artyom V. Poptsov

This patchset adds STUN and mDNS implementation from Pion[1] project.  The
patchset is related to [2] but can be applied independently.

References:
1. https://github.com/pion
2. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70825

Artyom V. Poptsov (6):
  gnu: Add go-github-com-pion-logging.
  gnu: Add go-github-com-pion-transport-v3.
  gnu: Add go-github-com-pion-transport-v2.
  gnu: Add go-github-com-pion-mdns.
  gnu: Add go-github-com-pion-dtls-v2.
  gnu: Add go-github-com-pion-stun-v2.

 gnu/packages/golang-xyz.scm | 167 ++++++++++++++++++++++++++++++++++++
 1 file changed, 167 insertions(+)


base-commit: 898b5f30f3d485d48275c920da172863da9524c6
-- 
2.41.0





^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#70955] [PATCH 1/6] gnu: Add go-github-com-pion-logging.
  2024-05-15  6:13 [bug#70955] [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns Artyom V. Poptsov
@ 2024-05-15  6:17 ` Artyom V. Poptsov
  2024-05-15  6:17 ` [bug#70955] [PATCH 2/6] gnu: Add go-github-com-pion-transport-v3 Artyom V. Poptsov
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Artyom V. Poptsov @ 2024-05-15  6:17 UTC (permalink / raw)
  To: 70955; +Cc: Artyom V. Poptsov

* gnu/packages/golang-xyz.scm (go-github-com-pion-logging): New variable.

Change-Id: I2da53900059251b78cad2bb56cfbc87228c91e23
---
 gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index cd023da86c..4ed310e9ef 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -2982,6 +2982,30 @@ (define-public go-github-com-pierrec-cmdflag
 on top of the standard library @code{flag} package.")
     (license license:bsd-3)))
 
+(define-public go-github-com-pion-logging
+  (package
+    (name "go-github-com-pion-logging")
+    (version "0.2.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/pion/logging/")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "11ay8c15xk3pv7y9nd80szk3mci480x67yqlgb10vswrz4h4mx3v"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/pion/logging"))
+    (home-page "https://github.com/pion/logging/")
+    (synopsis "Logging library used by @url{https://github.com/pion, Pion}")
+    (description
+     "he library is used as a part of @url{https://github.com/pion, Pion} WebRTC
+implementation.")
+    (license license:expat)))
+
 (define-public go-github-com-prometheus-client-model
   (package
     (name "go-github-com-prometheus-client-model")
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#70955] [PATCH 2/6] gnu: Add go-github-com-pion-transport-v3.
  2024-05-15  6:13 [bug#70955] [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns Artyom V. Poptsov
  2024-05-15  6:17 ` [bug#70955] [PATCH 1/6] gnu: Add go-github-com-pion-logging Artyom V. Poptsov
@ 2024-05-15  6:17 ` Artyom V. Poptsov
  2024-05-15  6:17 ` [bug#70955] [PATCH 3/6] gnu: Add go-github-com-pion-transport-v2 Artyom V. Poptsov
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Artyom V. Poptsov @ 2024-05-15  6:17 UTC (permalink / raw)
  To: 70955; +Cc: Artyom V. Poptsov

* gnu/packages/golang-xyz.scm (go-github-com-pion-transport-v3): New variable.

Change-Id: I465da7f98a1f6c9d05c69fd5e3efd0a9de5a0b36
---
 gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 4ed310e9ef..c70e62d6c7 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3006,6 +3006,36 @@ (define-public go-github-com-pion-logging
 implementation.")
     (license license:expat)))
 
+(define-public go-github-com-pion-transport-v3
+  (package
+    (name "go-github-com-pion-transport")
+    (version "3.0.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/pion/transport/")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0j7ljkbyf2qd7daxg7d1rd6c92md64agi59b69g6jyqpz5jww998"))))
+    (build-system go-build-system)
+    (native-inputs
+     (list go-github-com-stretchr-testify))
+    (propagated-inputs
+     (list go-github-com-pion-logging
+           go-golang-org-x-net
+           go-golang-org-x-sys))
+    (arguments
+     (list
+      #:import-path "github.com/pion/transport/v3"))
+    (home-page "https://github.com/pion/transport/")
+    (synopsis "Logging library used by @url{https://github.com/pion, Pion}")
+    (description
+     "The library is used as a part of @url{https://github.com/pion, Pion} WebRTC
+implementation.")
+    (license license:expat)))
+
 (define-public go-github-com-prometheus-client-model
   (package
     (name "go-github-com-prometheus-client-model")
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#70955] [PATCH 3/6] gnu: Add go-github-com-pion-transport-v2.
  2024-05-15  6:13 [bug#70955] [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns Artyom V. Poptsov
  2024-05-15  6:17 ` [bug#70955] [PATCH 1/6] gnu: Add go-github-com-pion-logging Artyom V. Poptsov
  2024-05-15  6:17 ` [bug#70955] [PATCH 2/6] gnu: Add go-github-com-pion-transport-v3 Artyom V. Poptsov
@ 2024-05-15  6:17 ` Artyom V. Poptsov
  2024-05-15  6:17 ` [bug#70955] [PATCH 4/6] gnu: Add go-github-com-pion-mdns Artyom V. Poptsov
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Artyom V. Poptsov @ 2024-05-15  6:17 UTC (permalink / raw)
  To: 70955; +Cc: Artyom V. Poptsov

* gnu/packages/golang-xyz.scm (go-github-com-pion-transport-v2): New variable.

Change-Id: I5d79c066fd7c26121d3903efd02dff07f54cd670
---
 gnu/packages/golang-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index c70e62d6c7..192b4e7cf1 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3036,6 +3036,24 @@ (define-public go-github-com-pion-transport-v3
 implementation.")
     (license license:expat)))
 
+(define-public go-github-com-pion-transport-v2
+  (package
+    (inherit go-github-com-pion-transport-v3)
+    (name "go-github-com-pion-transport")
+    (version "2.2.5")
+    (source
+     (origin
+       (inherit (package-source go-github-com-pion-transport-v3))
+       (uri (git-reference
+             (url "https://github.com/pion/transport/")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "00q3v37l56yr1ch25g5w70jy8y923csbvy4krvy4dv3h5f1mdpmf"))))
+    (arguments
+     (list
+      #:import-path "github.com/pion/transport/v2"))))
+
 (define-public go-github-com-prometheus-client-model
   (package
     (name "go-github-com-prometheus-client-model")
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#70955] [PATCH 4/6] gnu: Add go-github-com-pion-mdns.
  2024-05-15  6:13 [bug#70955] [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns Artyom V. Poptsov
                   ` (2 preceding siblings ...)
  2024-05-15  6:17 ` [bug#70955] [PATCH 3/6] gnu: Add go-github-com-pion-transport-v2 Artyom V. Poptsov
@ 2024-05-15  6:17 ` Artyom V. Poptsov
  2024-05-15  6:17 ` [bug#70955] [PATCH 5/6] gnu: Add go-github-com-pion-dtls-v2 Artyom V. Poptsov
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Artyom V. Poptsov @ 2024-05-15  6:17 UTC (permalink / raw)
  To: 70955; +Cc: Artyom V. Poptsov

* gnu/packages/golang-xyz.scm (go-github-com-pion-mdns): New variable.

Change-Id: Ic141fbaa01b40e60b443a672b5e54d315a114fff
---
 gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 192b4e7cf1..ca9e88547e 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3054,6 +3054,36 @@ (define-public go-github-com-pion-transport-v2
      (list
       #:import-path "github.com/pion/transport/v2"))))
 
+(define-public go-github-com-pion-mdns
+  (package
+    (name "go-github-com-pion-mdns")
+    (version "2.0.7")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/pion/mdns/")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "03675hx82lx3c8akkxdbkch1z4dbq54r05jk6jgdyd7mrdh9k4lm"))))
+    (build-system go-build-system)
+    (native-inputs (list go-github-com-stretchr-testify))
+    (propagated-inputs (list go-github-com-pion-logging
+                             go-github-com-pion-transport-v3
+                             go-golang-org-x-net))
+    (arguments
+     (list
+      #:go go-1.21
+      #:tests? #f ;Tests require network access.
+      #:import-path "github.com/pion/mdns"))
+    (home-page "https://github.com/pion/mdns/")
+    (synopsis "Pure Go implementation of Multicast DNS")
+    (description
+     "Pure Go implementation of Multicast DNS for @url{https://github.com/pion, Pion}
+WebRTC.")
+    (license license:expat)))
+
 (define-public go-github-com-prometheus-client-model
   (package
     (name "go-github-com-prometheus-client-model")
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#70955] [PATCH 5/6] gnu: Add go-github-com-pion-dtls-v2.
  2024-05-15  6:13 [bug#70955] [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns Artyom V. Poptsov
                   ` (3 preceding siblings ...)
  2024-05-15  6:17 ` [bug#70955] [PATCH 4/6] gnu: Add go-github-com-pion-mdns Artyom V. Poptsov
@ 2024-05-15  6:17 ` Artyom V. Poptsov
  2024-05-15  6:17 ` [bug#70955] [PATCH 6/6] gnu: Add go-github-com-pion-stun-v2 Artyom V. Poptsov
  2024-05-16 22:31 ` bug#70955: [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns Sharlatan Hellseher
  6 siblings, 0 replies; 8+ messages in thread
From: Artyom V. Poptsov @ 2024-05-15  6:17 UTC (permalink / raw)
  To: 70955; +Cc: Artyom V. Poptsov

* gnu/packages/golang-xyz.scm (go-github-com-pion-dtls-v2): New variable.

Change-Id: Ia3e77cda47fcb5a17a6cb7a82cd43f2beb8de1e9
---
 gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index ca9e88547e..b91a28c436 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3084,6 +3084,36 @@ (define-public go-github-com-pion-mdns
 WebRTC.")
     (license license:expat)))
 
+(define-public go-github-com-pion-dtls-v2
+  (package
+    (name "go-github-com-pion-dtls")
+    (version "2.2.11")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/pion/dtls/")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "10nn9349f7snqkzncda5m013fgnzicrcxi6pb6ghc0vb6rhqkf30"))))
+    (build-system go-build-system)
+    (native-inputs (list go-github-com-stretchr-testify))
+    (propagated-inputs (list go-github-com-pion-logging
+                             go-github-com-pion-transport-v3
+                             go-github-com-pion-transport-v2
+                             go-golang-org-x-crypto go-golang-org-x-net))
+    (arguments
+     (list
+      #:go go-1.21
+      #:import-path "github.com/pion/dtls/v2"))
+    (home-page "https://github.com/pion/dtls/")
+    (synopsis "DTLS 1.2 Server/Client implementation for Go")
+    (description
+     "Native @url{https://datatracker.ietf.org/doc/html/rfc6347, DTLS 1.2}
+implementation in the Go programming language.")
+    (license license:expat)))
+
 (define-public go-github-com-prometheus-client-model
   (package
     (name "go-github-com-prometheus-client-model")
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#70955] [PATCH 6/6] gnu: Add go-github-com-pion-stun-v2.
  2024-05-15  6:13 [bug#70955] [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns Artyom V. Poptsov
                   ` (4 preceding siblings ...)
  2024-05-15  6:17 ` [bug#70955] [PATCH 5/6] gnu: Add go-github-com-pion-dtls-v2 Artyom V. Poptsov
@ 2024-05-15  6:17 ` Artyom V. Poptsov
  2024-05-16 22:31 ` bug#70955: [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns Sharlatan Hellseher
  6 siblings, 0 replies; 8+ messages in thread
From: Artyom V. Poptsov @ 2024-05-15  6:17 UTC (permalink / raw)
  To: 70955; +Cc: Artyom V. Poptsov

* gnu/packages/golang-xyz.scm (go-github-com-pion-stun-v2): New variable.

Change-Id: I5d83caa918203c651909af667e004ab6df06498a
---
 gnu/packages/golang-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index b91a28c436..5f4c7c5b95 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3114,6 +3114,41 @@ (define-public go-github-com-pion-dtls-v2
 implementation in the Go programming language.")
     (license license:expat)))
 
+(define-public go-github-com-pion-stun-v2
+  (package
+    (name "go-github-com-pion-stun")
+    (version "2.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/pion/stun/")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0zli55ls5izpr6cw0wj0gy44872xn9rk20i8ay9cfk7j2rb60y60"))))
+    (build-system go-build-system)
+    (native-inputs (list go-github-com-stretchr-testify))
+    (propagated-inputs (list go-github-com-pion-dtls-v2
+                             go-github-com-pion-logging
+                             go-github-com-pion-transport-v3
+                             go-golang-org-x-crypto
+                             go-golang-org-x-net))
+    (arguments
+     (list
+      #:go go-1.21
+      #:import-path "github.com/pion/stun/v2"))
+    (home-page "https://github.com/pion/stun/")
+    (synopsis "Go implementation of STUN")
+    (description
+     "Package @code{stun} implements Session Traversal Utilities for
+NAT (STUN) (@url{https://tools.ietf.org/html/rfc5389, RFC 5389}) protocol and
+@url{https://pkg.go.dev/github.com/pion/stun#Client, client} with no external
+dependencies and zero allocations in hot paths.  Client
+@url{https://pkg.go.dev/github.com/pion/stun#WithRTO, supports} automatic
+request retransmissions.")
+    (license license:expat)))
+
 (define-public go-github-com-prometheus-client-model
   (package
     (name "go-github-com-prometheus-client-model")
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* bug#70955: [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns.
  2024-05-15  6:13 [bug#70955] [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns Artyom V. Poptsov
                   ` (5 preceding siblings ...)
  2024-05-15  6:17 ` [bug#70955] [PATCH 6/6] gnu: Add go-github-com-pion-stun-v2 Artyom V. Poptsov
@ 2024-05-16 22:31 ` Sharlatan Hellseher
  6 siblings, 0 replies; 8+ messages in thread
From: Sharlatan Hellseher @ 2024-05-16 22:31 UTC (permalink / raw)
  To: 70955-done

[-- Attachment #1: Type: text/plain, Size: 95 bytes --]


Hi,

I've applied some modifications and pushed as 26b324d082..08f391af78 to
master.

--
Oleg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-05-16 22:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-15  6:13 [bug#70955] [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns Artyom V. Poptsov
2024-05-15  6:17 ` [bug#70955] [PATCH 1/6] gnu: Add go-github-com-pion-logging Artyom V. Poptsov
2024-05-15  6:17 ` [bug#70955] [PATCH 2/6] gnu: Add go-github-com-pion-transport-v3 Artyom V. Poptsov
2024-05-15  6:17 ` [bug#70955] [PATCH 3/6] gnu: Add go-github-com-pion-transport-v2 Artyom V. Poptsov
2024-05-15  6:17 ` [bug#70955] [PATCH 4/6] gnu: Add go-github-com-pion-mdns Artyom V. Poptsov
2024-05-15  6:17 ` [bug#70955] [PATCH 5/6] gnu: Add go-github-com-pion-dtls-v2 Artyom V. Poptsov
2024-05-15  6:17 ` [bug#70955] [PATCH 6/6] gnu: Add go-github-com-pion-stun-v2 Artyom V. Poptsov
2024-05-16 22:31 ` bug#70955: [PATCH 0/6] gnu: Add go-github-com-pion-stun-v2 and go-github-com-pion-mdns Sharlatan Hellseher

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).