* [bug#69217] [PATCH] gnu: Add go-github-com-benbjohnson-clock.
@ 2024-02-17 18:57 Artyom V. Poptsov
2024-02-19 21:00 ` bug#69217: " Artyom V. Poptsov
0 siblings, 1 reply; 2+ messages in thread
From: Artyom V. Poptsov @ 2024-02-17 18:57 UTC (permalink / raw)
To: 69217
[-- Attachment #1.1: Type: text/plain, Size: 227 bytes --]
Hello,
this patch adds "go-github-com-benbjohnson-clock" package. [1]
Although the project is archived on GitHub it is required for the Kubo
(IPFS) package since version 0.20.0 up to 0.26.0 (which is the latest
version.) [2]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-go-github-com-benbjohnson-clock.patch --]
[-- Type: text/x-diff, Size: 2095 bytes --]
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(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index b0a5955405..716b199951 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -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
[-- Attachment #1.3: Type: text/plain, Size: 370 bytes --]
Thanks,
- avp
References:
1. https://github.com/benbjohnson/clock
2. https://github.com/ipfs/kubo/blob/096f510ab206c119693f145bc3331eeb33a69e07/go.mod#L6
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 869 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-19 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-17 18:57 [bug#69217] [PATCH] gnu: Add go-github-com-benbjohnson-clock Artyom V. Poptsov
2024-02-19 21:00 ` bug#69217: " Artyom V. Poptsov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).