Subject: [bug#70631] [PATCH 2/6] gnu: Add go-github-com-ipfs-go-detect-race.

From: "Artyom V. Poptsov" <[email-masked]>
Date: Sun, 28 Apr 2024 19:45:10 +0300

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

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

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index c827fb24ee..d8ddd5bb52 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -97,6 +97,29 @@ (define-public go-github-com-ipfs-go-ipfs-cmdkit-files
 @command{go-ipfs-cmds}.")
       (license license:expat))))
 
+(define-public go-github-com-ipfs-go-detect-race
+  (package
+    (name "go-github-com-ipfs-go-detect-race")
+    (version "0.0.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ipfs/go-detect-race")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0rqb0q66d7z852j5mhlr025dz698c44w014g4mx587amr1rvwqna"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.21
+      #:import-path "github.com/ipfs/go-log/v2"))
+    (home-page "https://github.com/ipfs/go-detect-race")
+    (synopsis "Detect if compiled with race")
+    (description "Check if the race detector is running.")
+    (license license:expat)))
+
 (define-public go-github-com-ipfs-go-ipfs-util
   (package
     (name "go-github-com-ipfs-go-ipfs-util")
-- 
2.41.0