aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-08-28 16:05:39 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-08-28 16:53:05 +0300
commit5d2ae881ce9abe248c047a50d71d4264b0bd1130 (patch)
tree3560085757f3e4ad7baec95fbc5c109ff0623d0d
parent018c29894850acba58451f2bec035db79f5fc78e (diff)
downloadguix-5d2ae881ce9abe248c047a50d71d4264b0bd1130.tar.gz
guix-5d2ae881ce9abe248c047a50d71d4264b0bd1130.zip
gnu: Add rust-num-cpus.
* gnu/packages/crates-io.scm (rust-num-cpus): New variable.
-rw-r--r--gnu/packages/crates-io.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index beec57a253..44dde04b62 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -744,6 +744,31 @@ types as proposed in RFC 1158.")
(license (list license:asl2.0
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
(package
(name "rust-num-integer")