Subject: [bug#72211] [PATCH 3/7] gnu: Add go-github-com-ipfs-bbloom.

From: "Artyom V. Poptsov" <[email-masked]>
Date: Sat, 20 Jul 2024 18:33:52 +0300

* gnu/packages/ipfs.scm (go-github-com-ipfs-bbloom): New variable.

Change-Id: If5b5d486f50f82750a5b11a3248a3aaa2ed91658
---
 gnu/packages/ipfs.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index af4d6ce39c..aaff903aaf 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -41,6 +41,32 @@ (define-module (gnu packages ipfs)
   #:use-module (gnu packages shells)
   #:use-module (gnu packages specifications))
 
+(define-public go-github-com-ipfs-bbloom
+  (package
+    (name "go-github-com-ipfs-bbloom")
+    (version "0.0.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ipfs/bbloom")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0dcdn7nlysynl7yrbivv8m7j83jq7pabhcff8mvfjdk583rgnkp2"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.21
+      #:import-path "github.com/ipfs/bbloom"))
+    (home-page "https://github.com/ipfs/bbloom")
+    (synopsis "Fast bit set Bloom filter")
+    (description
+     "@code{bbloom} package implements a fast bloom filter with real @code{bitset}
+and JSONMarshal/JSONUnmarshal to store/reload the Bloom filter.")
+    (license (list license:expat             ; bbloom.go
+                   license:public-domain)))) ; siphash.go
+
 (define-public go-github-com-ipfs-go-block-format
   (package
     (name "go-github-com-ipfs-go-block-format")
-- 
2.45.2