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

commit c1bbea9057fd0f60ca4ddb45c968eec5455db8be
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Feb 14 00:24:58 2026 +0000

    gnu: Add go-github-com-ipfs-go-dsqueue.
    
    * gnu/packages/ipfs.scm (go-github-com-ipfs-go-dsqueue): New variable.
    
    Change-Id: Ife2196464c544505b1a24661c98f2d1a74ab6727
---
 gnu/packages/ipfs.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 215deb1e8c..3273911f20 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -555,6 +555,48 @@ anywhere that accepts a 
@url{https://github.com/ipfs/go-datastore,
 go-datastore}.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public go-github-com-ipfs-go-dsqueue
+  (package
+    (name "go-github-com-ipfs-go-dsqueue")
+    (version "0.2.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/ipfs/go-dsqueue";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0bz6b0541i0aisfjj45gw044yi78523ma98cnj1hbrx028480chb"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.25
+      #:import-path "github.com/ipfs/go-dsqueue"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'pre-check
+            (lambda* (#:key tests? import-path #:allow-other-keys)
+              ;; See: <https://go.dev/blog/synctest>.
+              (setenv "GOEXPERIMENT" "synctest")
+              (setenv "GODEBUG" "asynctimerchan=0"))))))
+    (native-inputs
+     (list go-github-com-ipfs-go-test))
+    (propagated-inputs
+     (list go-github-com-gammazero-deque
+           go-github-com-hashicorp-golang-lru-v2
+           go-github-com-ipfs-go-cid
+           go-github-com-ipfs-go-datastore
+           go-github-com-ipfs-go-ds-leveldb
+           go-github-com-ipfs-go-log-v2))
+    (home-page "https://github.com/ipfs/go-dsqueue";)
+    (synopsis "Buffered FIFO interface to datastore")
+    (description
+     "Package dsqueue provides a buffered FIFO interface to the datastore for
+storing and retrieving items.  Queued items are persisted across restarts.")
+    ;; SPDX-License-Identifier: Apache-2.0 OR MIT
+    (license (list license:expat license:asl2.0))))
+
 (define-public go-github-com-ipfs-go-fs-lock
   (package
     (name "go-github-com-ipfs-go-fs-lock")

Reply via email to