sharlatan pushed a commit to branch go-team
in repository guix.
commit 734565a796ab1f7e2baeafbce6a42929fd763060
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Feb 15 20:26:20 2025 +0000
gnu: Add go-github-com-filecoin-project-go-clock.
* gnu/packages/golang-check.scm (go-github-com-filecoin-project-go-clock):
New variable.
Change-Id: Ie835c2b3d9d47e6cd95c74136ac4c7bb349ac28c
---
gnu/packages/golang-check.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 73db609ac7..1954d0635a 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -503,6 +503,33 @@ fgprof is designed for analyzing applications with mixed
I/O and CPU
workloads. This kind of profiling is also known as wall-clock profiling.")
(license license:expat)))
+(define-public go-github-com-filecoin-project-go-clock
+ (package
+ (name "go-github-com-filecoin-project-go-clock")
+ (version "0.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/filecoin-project/go-clock")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0rk2m07z42g9dxxda9a14caskc01pqfhpkcy5lf161lh8d8wf8g6"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/filecoin-project/go-clock"))
+ (home-page "https://github.com/filecoin-project/go-clock")
+ (synopsis "Mocking time in Go")
+ (description
+ "Clock is a small library for mocking time in Go. It provides an
+interface around the standard library's @url{https://pkg.go.dev/time, @code{
+time}} package so that the application can use the realtime clock while tests
+can use the mock clock. This is a maintained fork of benbjohnson's
+@url{https://github.com/benbjohnson/clock, clock} package.")
+ (license license:expat)))
+
;; XXX: The project looks like abandoned, see
;; <https://github.com/frankban/quicktest/issues/172>, remove when nothing
;; depends on it.