From: Vinicius Monego <monego@posteo.net>
To: 49151@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#49151] [PATCH 5/5] gnu: Add rust-battery-0.7.
Date: Mon, 21 Jun 2021 10:43:49 +0000 [thread overview]
Message-ID: <20210621104349.110367-5-monego@posteo.net> (raw)
In-Reply-To: <20210621104349.110367-1-monego@posteo.net>
* gnu/packages/crates-io.scm (rust-battery-0.7): New variable.
---
gnu/packages/crates-io.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9b17db332b..92e0b74f32 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4206,6 +4206,42 @@ c6e7d37. However, this package works only up to 128 bytes.")
(description "This library provides for encoding and decoding any base.")
(license license:expat)))
+(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 ;; Tests fail with "No such file or directory".
+ #: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-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 "Information about the notebook batteries")
+ (description
+ "@code{battery} provides a unified API to a notebook batteries state.")
+ ;; Dual licensed, either license applies.
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-beef-0.5
(package
(name "rust-beef")
--
2.32.0
next prev parent reply other threads:[~2021-06-21 11:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-21 10:41 [bug#49151] [PATCH 0/5] gnu: Add rust-battery-0.7 Vinicius Monego
2021-06-21 10:43 ` [bug#49151] [PATCH 1/5] gnu: Add rust-uom-0.31 Vinicius Monego
2021-06-21 10:43 ` [bug#49151] [PATCH 2/5] gnu: Add rust-uom-0.30 Vinicius Monego
2021-06-21 10:43 ` [bug#49151] [PATCH 3/5] gnu: Add rust-mach-0.3 Vinicius Monego
2021-06-21 10:43 ` [bug#49151] [PATCH 4/5] gnu: rust-lazycell-1: Update to 1.3.0 Vinicius Monego
2021-06-21 10:43 ` Vinicius Monego [this message]
2021-06-22 9:04 ` bug#49151: [PATCH 0/5] gnu: Add rust-battery-0.7 Nicolas Goaziou
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=20210621104349.110367-5-monego@posteo.net \
--to=monego@posteo.net \
--cc=49151@debbugs.gnu.org \
/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).