Subject: [bug#72211] [PATCH 5/7] gnu: Add go-github-com-ipfs-go-metrics-interface.

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

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

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

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index df59f1adbf..21440b1948 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -684,6 +684,37 @@ (define-public go-github-com-ipfs-go-log
      (list
       #:import-path "github.com/ipfs/go-log"))))
 
+(define-public go-github-com-ipfs-go-metrics-interface
+  (package
+    (name "go-github-com-ipfs-go-metrics-interface")
+    (version "0.0.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ipfs/go-metrics-interface")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "09xc71175sfnqlizkbw066jagnbag9ihvs240z6g6dm2yx3w5xgy"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.21
+      #:import-path "github.com/ipfs/go-metrics-interface"))
+    (propagated-inputs
+     (list go-github-com-ipfs-go-cid
+           go-github-com-ipfs-go-datastore
+           go-github-com-multiformats-go-base32
+           go-github-com-multiformats-go-multihash))
+    (home-page "https://github.com/ipfs/go-metrics-interface")
+    ;; XXX: The project neither has a no proper description, nor a README (see
+    ;; <https://github.com/ipfs/go-metrics-interface/issues/1>.)
+    (synopsis "Metrics interface for IPFS")
+    (description
+     "Metrics interface for IPFS (Kubo).")
+    (license license:expat)))
+
 (define-public go-github-com-libp2p-go-socket-activation
   (package
     (name "go-github-com-libp2p-go-socket-activation")
-- 
2.45.2