Subject: [bug#68819] [PATCH 15/49] gnu: Add rust-sensors-0.2.

From: Herman Rimm <[email-masked]>
Date: Tue, 30 Jan 2024 16:24:58 +0100

* gnu/packages/crates-io.scm (rust-sensors-0.2): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4ee079892c..26cf93c8a8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -59387,6 +59387,27 @@ (define-public rust-servo-fontconfig-sys-5
      "This package provides a Rust wrapper around Fontxonfig.")
     (license license:expat)))
 
+(define-public rust-sensors-0.2
+  (package
+    (name "rust-sensors")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "sensors" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1l6nvmbbbbl9mdkd9806mmls68d6hvqb2nl0nm14chva5xwz8fks"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-libsensors-sys" ,rust-libsensors-sys-0.2))))
+    (home-page "https://github.com/nyantec/sensors")
+    (synopsis "A Rust-friendly interface to lm-sensors")
+    (description
+     "This package provides a Rust-friendly interface to lm-sensors")
+    (license license:miros)))
+
 (define-public rust-shadow-rs-0.8
   (package
     (name "rust-shadow-rs")
-- 
2.41.0