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

commit 66bb078f898994ec984f15101234d399863184af
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Thu Feb 27 14:54:20 2025 +0000

    gnu: Add go-github-com-cskr-pubsub-v2.
    
    * gnu/packages/golang-xyz.scm (go-github-com-cskr-pubsub): Downgrade to
    1.0.2 to reflect go.mod path.
    (go-github-com-cskr-pubsub-v2): New variable.
    
    Change-Id: Icb3a8ed12d6c1414aecb4552c9001b1861979ffd
---
 gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index c213ad8978..da1665f2de 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4058,7 +4058,7 @@ values.  It supports almost all kind of types: 
@code{int/8/16/32/64},
 (define-public go-github-com-cskr-pubsub
   (package
     (name "go-github-com-cskr-pubsub")
-    (version "2.0.2")
+    (version "1.0.2")
     (source
      (origin
        (method git-fetch)
@@ -4067,7 +4067,7 @@ values.  It supports almost all kind of types: 
@code{int/8/16/32/64},
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0iy85nxrfv6hp4i4mnqayjfx4hci7qyycqbaz4fx8wbd15n9ll66"))))
+        (base32 "0wr8cg5axrlz9xg33r9dqvkp5ix9q8h8c7qw78mj22qprwh3zj9f"))))
     (build-system go-build-system)
     (arguments
      (list
@@ -4078,6 +4078,25 @@ values.  It supports almost all kind of types: 
@code{int/8/16/32/64},
      "Package @code{pubsub} implements a simple multi-topic pub-sub library.")
     (license license:bsd-2)))
 
+(define-public go-github-com-cskr-pubsub-v2
+  (package
+    (inherit go-github-com-cskr-pubsub)
+    (name "go-github-com-cskr-pubsub-v2")
+    (version "2.0.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/cskr/pubsub";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0iy85nxrfv6hp4i4mnqayjfx4hci7qyycqbaz4fx8wbd15n9ll66"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/cskr/pubsub/v2"))))
+
 (define-public go-github-com-cyberdelia-go-metrics-graphite
   (package
     ;; No release, see

Reply via email to