diff mbox series

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

Message ID 759c40da760e3ceb45c1e4e957974a5af70ec03f.1710817680.git.normally_js@posteo.net
State New
Headers show
Series gnu: Add procs. | expand

Commit Message

normally_js March 19, 2024, 3:50 a.m. UTC
* 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 mbox series

Patch

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")