* gnu/packages/rust.scm (rust-rand): New variable. --- gnu/packages/rust.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index acff15e6f..a64f72f03 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -289,3 +289,22 @@ fast, prevents segfaults, and guarantees thread safety.") (description "This package provides a library for types and bindings to native C functions often found in libc or other common platform libraries.") (license (list license:expat license:asl2.0)))) + +(define-public rust-rand + (package + (name "rust-rand") + (version "0.3.15") + (source (origin + (method url-fetch) + (uri (crate-uri "rand" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "178qgglinqawwsw6l8imgnplxkmxcj404jqm92pds695xhv0cbh2")))) + (build-system cargo-build-system) + (inputs + `(("rust-libc" ,rust-libc))) + (home-page "https://github.com/rust-lang/rand") + (synopsis "Random number generators") + (description "Random number generators and other randomness functionality.") + (license (list license:expat license:asl2.0)))) -- 2.11.0