Subject: [PATCH 2/5] gnu: Add go-github-com-pion-turn-v2.

From: "Artyom V. Poptsov" <[email-masked]>
Date: Fri, 17 May 2024 22:27:13 +0300

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

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

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 862e611e75..df4b7db15b 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3051,6 +3051,31 @@ (define-public go-github-com-pion-turn-v3
 @url{https://godoc.org/github.com/pion/turn, GoDoc}.")
     (license license:expat)))
 
+(define-public go-github-com-pion-turn-v2
+  (package
+    (inherit go-github-com-pion-turn-v3)
+    (name "go-github-com-pion-turn")
+    (version "2.1.6")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/pion/turn/")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0iw7nvqsxpqy90k5a8mq3dyask272391m59cbiy30aak1y2wwaac"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments
+                                    go-github-com-pion-turn-v3)
+       ((#:unpack-path flags ''())
+        "github.com/pion/turn/v2")
+       ((#:import-path flags ''())
+        "github.com/pion/turn/v2")))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs go-github-com-pion-turn-v3)
+       (replace "go-github-com-pion-stun-v2" go-github-com-pion-stun)))))
+
 (define-public go-github-com-prometheus-client-model
   (package
     (name "go-github-com-prometheus-client-model")
-- 
2.41.0