summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-09-05 16:02:33 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-09-06 15:45:56 +0300
commit5ef82ec8baff1e4f172b0cfbe46298547c47cef3 (patch)
tree1dcd558da1c9006ed43dff0140fd794044cd0676
parente15f55208f8d0f93e075f681e36e86c65baa4405 (diff)
downloadpatches-5ef82ec8baff1e4f172b0cfbe46298547c47cef3.tar
patches-5ef82ec8baff1e4f172b0cfbe46298547c47cef3.tar.gz
gnu: Add rust-rand.
* gnu/packages/crates-io.scm (rust-rand): New variable.
-rw-r--r--gnu/packages/crates-io.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ebd3d4ded1..0ad3de9921 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1514,6 +1514,32 @@ to write.")
;; Dual licensed.
(license (list license:asl2.0 license:expat))))
+(define-public rust-rand
+ (package
+ (name "rust-rand")
+ (version "0.4.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "rand" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1gfgnqfj2pyh27dcb720jpawskllwnbvxh816ddyykv269xz8ml3"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-fuchsia-zircon" ,rust-fuchsia-zircon)
+ ("rust-libc" ,rust-libc)
+ ("rust-winapi" ,rust-winapi))))
+ (home-page "https://crates.io/crates/rand")
+ (synopsis "Random number generators and other randomness functionality")
+ (description
+ "Rand provides utilities to generate random numbers, to convert them to
+useful types and distributions, and some randomness-related algorithms.")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-rawpointer
(package
(name "rust-rawpointer")