Subject: [bug#69890] [PATCH 11/43] gnu: Add rust-procinfo-0.4.

From: normalmente <[email-masked]>
Date: Tue, 19 Mar 2024 03:50:42 +0000

* gnu/packages/crates-io.scm (rust-procinfo-0.4): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b9e65eafef..ab644aaf4c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -49616,6 +49616,34 @@ (define-public rust-priority-queue-1
 priority of an object.")
     (license license:expat)))
 
+(define-public rust-procinfo-0.4
+  (package
+    (name "rust-procinfo")
+    (version "0.4.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "procinfo" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "175l4cprsb56jrkycpz0743clgc8fyhxv4i8hhgqjd967mzl5cba"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags
+       '("--release" "--" ; thread panic on bad unwrap.
+         "--skip=pid::status::tests::test_status")
+       #:cargo-inputs
+       (("rust-byteorder" ,rust-byteorder-1)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-nom" ,rust-nom-2)
+        ("rust-rustc-version" ,rust-rustc-version-0.2))))
+    (home-page "https://github.com/danburkert/procinfo-rs")
+    (synopsis "Library for accessing Linux processes and system information")
+    (description
+     "This package provides a library for accessing Linux processes and system
+information.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-proc-macro-crate-3
   (package
     (name "rust-proc-macro-crate")
-- 
2.41.0