mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: Add rust-num-cpus.
* gnu/packages/crates-io.scm (rust-num-cpus): New variable.
This commit is contained in:
parent
018c298948
commit
5d2ae881ce
1 changed files with 25 additions and 0 deletions
|
@ -744,6 +744,31 @@ (define-public rust-net2
|
||||||
(license (list license:asl2.0
|
(license (list license:asl2.0
|
||||||
license:expat))))
|
license:expat))))
|
||||||
|
|
||||||
|
(define-public rust-num-cpus
|
||||||
|
(package
|
||||||
|
(name "rust-num-cpus")
|
||||||
|
(version "1.10.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "num_cpus" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0wrj3zvj6h3q26sqj9zxpd59frjb54n7jhjwf307clq31ic47vxw"))))
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:cargo-inputs
|
||||||
|
(("rust-libc" ,rust-libc))
|
||||||
|
#:cargo-development-inputs
|
||||||
|
(("rust-doc-comment" ,rust-doc-comment))))
|
||||||
|
(home-page "https://github.com/seanmonstar/num_cpus")
|
||||||
|
(synopsis "Get the number of CPUs on a machine")
|
||||||
|
(description
|
||||||
|
"Get the number of CPUs on a machine.")
|
||||||
|
(license (list license:asl2.0
|
||||||
|
license:expat))))
|
||||||
|
|
||||||
(define-public rust-num-integer
|
(define-public rust-num-integer
|
||||||
(package
|
(package
|
||||||
(name "rust-num-integer")
|
(name "rust-num-integer")
|
||||||
|
|
Loading…
Reference in a new issue