From 27c42ddecac1ead31a194503144cda2e1a8cd3e2 Mon Sep 17 00:00:00 2001
Message-ID: <27c42ddecac1ead31a194503144cda2e1a8cd3e2.1708179999.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sat, 17 Feb 2024 17:24:33 +0300
Subject: [PATCH] gnu: Add go-github-com-benbjohnson-clock.
* gnu/packages/golang-xyz.scm (go-github-com-benbjohnson-clock): New variable.
Change-Id: Ifcb3254e07388a6c7b4a7f9ee5dff4f3b4d25ee8
---
gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
@@ -146,6 +146,31 @@ (define-public go-github-com-armon-go-radix
@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")
base-commit: 3cf199dbcf85a44fa8370e786e568fc3feb7067c
--
2.41.0