Subject: [PATCH 04/14] gnu: Add rust-bugreport.

From: Rémi Teissier <[email-masked]>
Date: Sat, 2 Dec 2023 22:33:05 +0100

Change-Id: I014f485dbeea18f67bc18ee2987a55a8b61c2f00
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5d11c7468b..1f47f5371f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -9723,6 +9723,31 @@ (define-public rust-bstr-0.2
         ("rust-ucd-parse" ,rust-ucd-parse-0.1)
         ("rust-unicode-segmentation" ,rust-unicode-segmentation-1))))))
 
+(define-public rust-bugreport-0.5
+  (package
+    (name "rust-bugreport")
+    (version "0.5.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "bugreport" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256 (base32 "1jcq9ywxyd7fw1ing8ixna0cfcs5lrviyvx6h6080ir532w20lak"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-sys-info" ,rust-sys-info-0.9)
+         ("rust-git-version" ,rust-git-version-0.3)
+         ("rust-shell-escape" ,rust-shell-escape-0.1))
+        #:cargo-development-inputs
+        (("rust-tempfile" ,rust-tempfile-3)
+         ("rust-pretty-assertions" ,rust-pretty-assertions-1))))
+    (home-page "https://github.com/sharkdp/bugreport")
+    (synopsis "Collect system and environment information for bug reports")
+    (description "bugreport is a Rust library that helps application developers
+to automatically collect information about the system and the environment that users
+can send along with a bug report (similar to @code{git bugreport} or @code{ffmpeg …} -report).")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-buf-min-0.7
   (package
     (name "rust-buf-min")
-- 
2.41.0