gnu: Add rust-sysinfo.

* gnu/packages/crates-io.scm (rust-sysinfo-0.15): New variable.
This commit is contained in:
Danny Milosavljevic 2022-12-07 18:45:54 +01:00
parent 5c996aa8e4
commit c1707f036c
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -57103,6 +57103,36 @@ (define-public rust-sysctl-0.1
("rust-errno" ,rust-errno-0.2)
("rust-libc" ,rust-libc-0.2))))))
(define-public rust-sysinfo-0.15
(package
(name "rust-sysinfo")
(version "0.15.11")
(source (origin
(method url-fetch)
(uri (crate-uri "sysinfo" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"0n713rhayp28z8j4pviqcg4blcp1yfvniwa1ipinp75hyv7lq0nx"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs (("rust-cc" ,rust-cc-1)
("rust-cfg-if" ,rust-cfg-if-1)
("rust-core-foundation-sys" ,rust-core-foundation-sys-0.8)
("rust-doc-comment" ,rust-doc-comment-0.3)
("rust-libc" ,rust-libc-0.2)
("rust-ntapi" ,rust-ntapi-0.3)
("rust-once-cell" ,rust-once-cell-1)
("rust-rayon" ,rust-rayon-1)
("rust-winapi" ,rust-winapi-0.3))))
(home-page "https://github.com/GuillaumeGomez/sysinfo")
(synopsis "System handler to interact with processes")
(description
"This package is a library to get system information such as processes,
processors, disks, components and networks.")
(license license:expat)))
(define-public rust-sysinfo-0.23
(package
(name "rust-sysinfo")