summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2024-02-17 17:24:33 +0300
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-02-19 23:32:32 +0000
commit084ce22aa336cc92104d586ede30b583fb9e6fef (patch)
treeae09ca99cfda5f5e138ad66e825f96a99cd2ecc7 /gnu/packages
parent773d469a0eaa783d584fc9d2060df386fdc7aad8 (diff)
gnu: Add go-github-com-benbjohnson-clock.
* gnu/packages/golang-xyz.scm (go-github-com-benbjohnson-clock): New variable. Change-Id: Ifcb3254e07388a6c7b4a7f9ee5dff4f3b4d25ee8 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/golang-xyz.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 836357bb02..b6e582fdc5 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -150,6 +150,31 @@ optimized for sparse nodes of
@url{http://en.wikipedia.org/wiki/Radix_tree,radix tree}.")
(license license:expat)))
+(define-public go-github-com-benbjohnson-clock
+ (package
+ (name "go-github-com-benbjohnson-clock")
+ (version "1.3.5")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/benbjohnson/clock")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1p7n09pywqra21l981fbkma9vzsyf31pbvw6xg5r4hp8h8scf955"))))
+ (build-system go-build-system)
+ (arguments
+ `(#:import-path "github.com/benbjohnson/clock"
+ #:go ,go-1.21))
+ (home-page "https://github.com/benbjohnson/clock")
+ (synopsis "Small library for mocking time in Go")
+ (description
+ "@code{clock} is a small library for mocking time in Go. It provides an
+interface around the standard library's @code{time} package so that the application
+can use the realtime clock while tests can use the mock clock.")
+ (license license:expat)))
+
(define-public go-github-com-bitly-go-hostpool
(package
(name "go-github-com-bitly-go-hostpool")