aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2021-06-21 10:43:49 +0000
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-06-22 11:02:01 +0200
commite88f205876afc8f0cee2dd4ac1071b81042d4a80 (patch)
tree91da855cc15a089564e8c1747109f7a4b01ab7a9 /gnu/packages/crates-io.scm
parentd07bade71e5ddb5ac606f5e8b6b2c7630cc557d3 (diff)
downloadguix-e88f205876afc8f0cee2dd4ac1071b81042d4a80.tar.gz
guix-e88f205876afc8f0cee2dd4ac1071b81042d4a80.zip
gnu: Add rust-battery-0.7.
* gnu/packages/crates-io.scm (rust-battery-0.7): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0e90e566e3..82a09b8b2a 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")