From 489c4189a88c744b68dad0d9e0faa99365f96642 Mon Sep 17 00:00:00 2001 From: John Soo Date: Fri, 20 Dec 2019 08:06:22 -0800 Subject: [PATCH] gnu: Add rust-getrandom-0.1. * gnu/packages/crates-io.scm (rust-getrandom-0.1): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 31a9b4942a..deeb78f375 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -3525,6 +3525,35 @@ (define-public rust-getopts-0.2 (license (list license:asl2.0 license:expat)))) +(define-public rust-getrandom-0.1 + (package + (name "rust-getrandom") + (version "0.1.6") + (source + (origin + (method url-fetch) + (uri (crate-uri "getrandom" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0macrjfkgsjn6ikr94agapp4fkxmr8w7y2g7qis4icc4a17cwp76")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-lazy-static" ,rust-lazy-static-1.3) + ("rust-libc" ,rust-libc-0.2) + ("rust-log" ,rust-log-0.4) + ("rust-stdweb" ,rust-stdweb-0.4) + ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)))) + (home-page "https://github.com/rust-random/getrandom") + (synopsis "Retrieve random data from system source") + (description + "This package provides a small cross-platform library for +retrieving random data from system source.") + (license (list license:expat license:asl2.0)))) + (define-public rust-gimli-0.18 (package (name "rust-gimli")