From: Luca Matei Pintilie via Guix-patches via <guix-patches@gnu.org>
To: 73884@debbugs.gnu.org
Cc: Luca Matei Pintilie <luca@lucamatei.com>
Subject: [bug#73884] [PATCH v1 18/19] gnu: Add rust-battery-0.7
Date: Sun, 20 Oct 2024 18:15:55 +0200 [thread overview]
Message-ID: <20241020161556.25798-3-luca@lucamatei.com> (raw)
In-Reply-To: <20241020161556.25798-1-luca@lucamatei.com>
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
next prev parent reply other threads:[~2024-10-20 19:06 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-19 12:46 [bug#73884] [PATCH 00/19] gnu: Add swayrbar Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 01/19] gnu: Add rust-windows-metadata-0.57 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 02/19] gnu: Add rust-windows-bindgen-0.57 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 03/19] gnu: Add rust-windows-result-0.1 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 04/19] gnu: Add rust-windows-interface-0.57 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 05/19] gnu: Add rust-windows-implement-0.57 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 06/19] gnu: Add rust-windows-core-0.57 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 07/19] gnu: Add rust-windows-0.57 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 08/19] gnu: Add rust-sysinfo-0.31 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 09/19] gnu: Add rust-swaybar-types-3 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 10/19] gnu: rust-regex-syntax-0.8: Update to 0.8.5 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 11/19] gnu: rust-regex-automata-0.4: Update to 0.4.8 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 12/19] gnu: rust-regex-1: Update to 1.11.0 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 13/19] gnu: Add rust-crossbeam-utils-0.8.16 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 14/19] gnu: rust-portable-atomic-1: Update to 1.9.0 Luca Matei Pintilie via Guix-patches via
2024-10-19 14:49 ` [bug#73884] [PATCH v1 15/19] gnu: rust-critical-section-1: Update to 1.1.3 Luca Matei Pintilie via Guix-patches via
2024-10-21 5:20 ` [bug#73884] [PATCH v1 01/19] gnu: Add rust-windows-metadata-0.57 Efraim Flashner
2024-10-20 16:15 ` [bug#73884] [PATCH v1 16/19] gnu: rust-once-cell-1: Update to 1.20.2 Luca Matei Pintilie via Guix-patches via
2024-10-20 16:15 ` [bug#73884] [PATCH v1 17/19] gnu: Add rust-uom-0.30 Luca Matei Pintilie via Guix-patches via
2024-10-20 16:15 ` Luca Matei Pintilie via Guix-patches via [this message]
2024-10-20 16:15 ` [bug#73884] [PATCH v1 19/19] gnu: Add swayrbar Luca Matei Pintilie via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241020161556.25798-3-luca@lucamatei.com \
--to=guix-patches@gnu.org \
--cc=73884@debbugs.gnu.org \
--cc=luca@lucamatei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).