* gnu/packages/rust.scm (rust-rand): New variable. --- gnu/packages/rust.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 44f4e2a10..1e6bd8672 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -404,3 +404,25 @@ implementation that is most suitable for its use case.") "Futures is a library implementation of futures and streams featuring zero allocations, composability, and iterator-like interfaces.") (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) + (native-inputs `(("rust-log" ,rust-log "src"))) + (inputs `(("rust-libc" ,rust-libc "src"))) + (home-page "https://github.com/rust-lang/rand") + (synopsis "Random number generators and other randomness") + (description + "Library for random number generators and other randomness functionality.") + (license (list license:expat license:asl2.0)))) -- 2.11.0