[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#73884] [PATCH v1 18/19] gnu: Add rust-battery-0.7
From: |
Luca Matei Pintilie |
Subject: |
[bug#73884] [PATCH v1 18/19] gnu: Add rust-battery-0.7 |
Date: |
Sun, 20 Oct 2024 18:15:55 +0200 |
Change-Id: I263d424b3f24eefa4910e95d81693d8af37bec1d
---
gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a7abe1eb3b..e946cdab51 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -7222,6 +7222,38 @@ (define-public rust-bat-0.18
(inputs
(list libgit2 zlib))))
+(define-public rust-battery-0.7
+ (package
+ (name "rust-battery")
+ (version "0.7.8")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "battery" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1r1641dyks76p39i1iihswhc6iz5z51pihmpxniy1h1pi4k29dml"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ;/sys/class/power_supply cannot be found
+ #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+ ("rust-core-foundation" ,rust-core-foundation-0.7)
+ ("rust-lazycell" ,rust-lazycell-1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-mach" ,rust-mach-0.3)
+ ("rust-nix" ,rust-nix-0.19)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-uom" ,rust-uom-0.30)
+ ("rust-winapi" ,rust-winapi-0.3))
+ #:cargo-development-inputs (("rust-approx" ,rust-approx-0.3)
+ ("rust-tempfile" ,rust-tempfile-3))))
+ (home-page "https://github.com/svartalf/rust-battery")
+ (synopsis "Cross-platform information about the notebook batteries")
+ (description
+ "This package provides Cross-platform information about the notebook
batteries.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-beef-0.5
(package
(name "rust-beef")
--
2.47.0
- [bug#73884] [PATCH v1 04/19] gnu: Add rust-windows-interface-0.57, (continued)
- [bug#73884] [PATCH v1 04/19] gnu: Add rust-windows-interface-0.57, Luca Matei Pintilie, 2024/10/19
- [bug#73884] [PATCH v1 08/19] gnu: Add rust-sysinfo-0.31, Luca Matei Pintilie, 2024/10/19
- [bug#73884] [PATCH v1 11/19] gnu: rust-regex-automata-0.4: Update to 0.4.8, Luca Matei Pintilie, 2024/10/19
- [bug#73884] [PATCH v1 14/19] gnu: rust-portable-atomic-1: Update to 1.9.0, Luca Matei Pintilie, 2024/10/19
- [bug#73884] [PATCH v1 02/19] gnu: Add rust-windows-bindgen-0.57, Luca Matei Pintilie, 2024/10/19
- [bug#73884] [PATCH v1 01/19] gnu: Add rust-windows-metadata-0.57, Efraim Flashner, 2024/10/21
- [bug#73884] [PATCH v1 16/19] gnu: rust-once-cell-1: Update to 1.20.2, Luca Matei Pintilie, 2024/10/20
- [bug#73884] [PATCH v2] gnu: Add swaysome, Luca Matei Pintilie, 2024/10/26