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

commit 33c4ad85c4ad38ad576004b66b4d8a2bd04ef0dc
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Sat Jul 27 10:06:47 2024 +0100

    gnu: Add go-github-com-avast-retry-go-v4.
    
    * gnu/packages/golang-xyz.scm (go-github-com-avast-retry-go-v4): New 
variable.
    
    Change-Id: If1463e2f9851ce22c2adb804ea8ed4abaf597bcc
---
 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 fe2ea055de..144941c31b 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -886,6 +886,30 @@ strategies, such as fixed delay, backoff delay, and random 
delay.")
               (delete-file-recursively
                (string-append "src/" import-path "/examples")))))))))
 
+(define-public go-github-com-avast-retry-go-v4
+  (package
+    (inherit go-github-com-avast-retry-go)
+    (name "go-github-com-avast-retry-go-v4")
+    (version "4.6.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/avast/retry-go";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "09gs4wmkq7ragyf2xd0h6j8f9xqq66cwa95kwp5qdwz3wwv9xq1b"))))
+    (arguments
+     (list
+      #:import-path "github.com/avast/retry-go/v4"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-examples
+            (lambda* (#:key import-path #:allow-other-keys)
+              (delete-file-recursively
+               (string-append "src/" import-path "/examples")))))))))
+
 (define-public go-github-com-aymanbagabas-go-osc52-v2
   (package
     (name "go-github-com-aymanbagabas-go-osc52-v2")

Reply via email to