diff mbox series

[bug#69890,14/43] gnu: Add rust-libproc-0.14.

Message ID bac155d6fbe3b0f6062c9c506d7e554583432185.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-libproc-0.14): New variable.

Change-Id: If90b783e6fcc82ba0fff8a8ffc5e4f4a09d8db42
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 51efb522b8..4618a19911 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -34121,6 +34121,33 @@  (define-public rust-libnghttp2-sys-0.1
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-libproc-0.14
+  (package
+    (name "rust-libproc")
+    (version "0.14.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libproc" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0va3jzmgfj57lf0zfq59acfkid3frs6nvx9xlsnc5jd4g1q4kdlf"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-bindgen" ,rust-bindgen-0.69)
+        ("rust-errno" ,rust-errno-0.3)
+        ("rust-libc" ,rust-libc-0.2))
+       #:cargo-development-inputs
+       (("rust-procfs" ,rust-procfs-0.16)
+        ("rust-tempfile" ,rust-tempfile-3))))
+    (home-page "https://github.com/andrewdavidmackenzie/libproc-rs")
+    (synopsis "Library to get information about running processes")
+    (description
+     "This package provides a library to get information about running
+processes for both MacOS and Linux.")
+    (license license:expat)))
+
 (define-public rust-libpulse-binding-2
   (package
     (name "rust-libpulse-binding")