Subject: [bug#74551] [PATCH 32/49] gnu: Add rust-starship-battery-0.10.

From: Jordan Moore <[email-masked]>
Date: Tue, 26 Nov 2024 16:39:07 -0500

* gnu/packages/crates-io.scm (rust-starship-battery-0.10): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 999e980671..2f7dc1bcf3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -77915,6 +77915,39 @@ (define-public rust-standback-0.2
     (description "New standard library, old compiler.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-starship-battery-0.10
+  (package
+    (name "rust-starship-battery")
+    (version "0.10.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "starship-battery" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1llfi5gvgrwf08rm49lqr60lkzga167w59vzh20dpwwwhwvsj5wh"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-core-foundation" ,rust-core-foundation-0.10)
+                       ("rust-lazycell" ,rust-lazycell-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-mach2" ,rust-mach2-0.4)
+                       ("rust-nix" ,rust-nix-0.29)
+                       ("rust-num-traits" ,rust-num-traits-0.2)
+                       ("rust-plist" ,rust-plist-1)
+                       ("rust-schemars" ,rust-schemars-0.8)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-uom" ,rust-uom-0.36)
+                       ("rust-windows-sys" ,rust-windows-sys-0.59))
+       #:cargo-development-inputs (("rust-approx" ,rust-approx-0.5)
+                                   ("rust-tempfile" ,rust-tempfile-3))))
+    (home-page "https://github.com/starship/rust-battery")
+    (synopsis "Cross-platform information about the notebook batteries")
+    (description
+     "This package provides Cross-platform information about the notebook batteries.")
+    (license license:isc)))
+
 (define-public rust-state-0.6
   (package
     (name "rust-state")
-- 
2.46.0