sharlatan pushed a commit to branch go-team
in repository guix.

commit 5ccf31864135e5e69c29167139c9c75a40010de0
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Tue Feb 4 20:51:48 2025 +0000

    gnu: Add go-github-com-asdine-storm-v3.
    
    * gnu/packages/golang-xyz.scm (go-github-com-asdine-storm-v3): New variable.
    
    Change-Id: I39c296c1a0c60166ea1791486c4a6fc3cf79996c
---
 gnu/packages/golang-xyz.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 56ab7a363f..4d5588c951 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1570,6 +1570,44 @@ collections.  It was based on
 @url{https://github.com/chriso/validator.js,validator.js}.";)
     (license license:expat)))
 
+(define-public go-github-com-asdine-storm-v3
+  (package
+    (name "go-github-com-asdine-storm-v3")
+    (version "3.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/asdine/storm";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "07913m4nxy7cbc9q6ldqvxx60rh32b4djyvcp9bxwbb3c4al3fh4"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            ;; It requires v4 but import it as v1.
+            (substitute* (find-files "." "\\.go$")
+              (("github.com/vmihailenco/msgpack")
+               "github.com/vmihailenco/msgpack/v4"))))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/asdine/storm/v3"))
+    (native-inputs
+     (list go-github-com-stretchr-testify))
+    (propagated-inputs
+     (list go-github-com-golang-protobuf
+           go-github-com-sereal-sereal-go-sereal
+           go-github-com-vmihailenco-msgpack-v4
+           go-go-etcd-io-bbolt))
+    (home-page "https://github.com/asdine/storm";)
+    (synopsis "BoltDB toolkit for Golang")
+    (description
+     "Storm is a toolkit for @url{https://github.com/coreos/bbolt, BoltDB},
+providing various methods to work with it.")
+    (license license:expat)))
+
 (define-public go-github-com-atotto-clipboard
   (package
     (name "go-github-com-atotto-clipboard")

Reply via email to