summaryrefslogtreecommitdiff
path: root/gnu/packages/golang-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-07 15:54:09 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-22 20:13:03 +0100
commit435a9267090550b0ddd28b1502cb1bf4f4332378 (patch)
tree3a4dac5c8e64e54617617553ea6723a1ac8b83ca /gnu/packages/golang-xyz.scm
parentbdf0d0afa9e976370b79c09c7aa3d34a3f05f4e6 (diff)
gnu: Add go-github-com-rican7-retry.
* gnu/packages/golang-xyz.scm (go-github-com-rican7-retry): New variable. Change-Id: I3f027d88e446b6cc31894e0f726e6dbaad786e8a
Diffstat (limited to 'gnu/packages/golang-xyz.scm')
-rw-r--r--gnu/packages/golang-xyz.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 9c6614e274..2b5198a3eb 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -15224,6 +15224,37 @@ routines querying a database but without sending too much queries in order to
not overload the given database.")
(license license:expat)))
+(define-public go-github-com-rican7-retry
+ (package
+ (name "go-github-com-rican7-retry")
+ (version "0.3.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Rican7/retry")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ly1dh83kiq6ngxqk7s2gys0n49qzqldsqq62a7ggqx1z7s3l5a5"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; Submodules with their own go.mod files and packaged separately:
+ ;;
+ ;; - github.com/Rican7/retry/tools
+ (delete-file-recursively "tools")))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/Rican7/retry"))
+ (home-page "https://github.com/Rican7/retry")
+ (synopsis "Perform actions repetitively until successful")
+ (description
+ "Package retry provides a simple, stateless, functional mechanism to
+perform actions repetitively until successful.")
+ (license license:expat)))
+
(define-public go-github-com-rifflock-lfshook
(package
(name "go-github-com-rifflock-lfshook")