From b0bbd770f986281a54482104209ad84ec7904409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 1 Dec 2025 18:24:28 +0100 Subject: [PATCH] gnu: Add go-gopkg-in-djherbis-times-v1. * gnu/packages/golang-xyz.scm (go-gopkg-in-djherbis-times-v1): New variable. Change-Id: I32bcbb278de19a07ffebac603ec27b98c70f767b Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6c803329e6cfacb6a235b35705fb76558cff5c74..7343fa835fcedfe2fbbec04c9536cdbc472fd0b0 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -25977,6 +25977,34 @@ distributions of benchmark measurements (list #:import-path "gopkg.in/alecthomas/kingpin.v2")))) +(define-public go-gopkg-in-djherbis-times-v1 + (package + (name "go-gopkg-in-djherbis-times-v1") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/djherbis/times") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dk087l9c927f90zrsmyxxfx5i980r952qw47j9srq2q7dd0b4ni")) + (modules '((guix build utils))) + ;; Fix import path for itself in the example code (build by 'check). + (snippet '(substitute* "example/main.go" + (("github.com/djherbis/times") + "gopkg.in/djherbis/times.v1"))))) + (build-system go-build-system) + (arguments + (list + #:import-path "gopkg.in/djherbis/times.v1")) + (home-page "https://github.com/djherbis/times") + (synopsis "File times for Golang") + (description + "This package allows access different file time metadata from Golang.") + (license license:expat))) + (define-public go-gopkg-in-fsnotify-v1 (package/inherit go-github-com-fsnotify-fsnotify (name "go-gopkg-in-fsnotify-v1")