summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-12-20 15:37:21 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-01-04 19:29:14 +0100
commitfd9e53bf797dc34d79e0d6108dcfff62f3ec6be7 (patch)
treea858795016aa99a8c9cd3b632f469ba3d0ee7d03 /gnu/packages
parent3daf1cc4c6237f02db58438805063f7cfddd8eff (diff)
gnu: Add rust-getrandom-0.2.
* gnu/packages/crates-io.scm (rust-getrandom-0.2): New variable. (rust-getch-0.2): Inherit from above.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm40
1 files changed, 32 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d50457ff86..724ee6870f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -11743,8 +11743,39 @@ API library @code{gdi32}.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-getrandom-0.2
+ (package
+ (name "rust-getrandom")
+ (version "0.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "getrandom" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1x3clmvj5k2h9qv3ihbyif1rns3pf5y5n66f5jjyc5zr6v7jb07f"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-cfg-if" ,rust-cfg-if-0.1)
+ ("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1)
+ ("rust-stdweb" ,rust-stdweb-0.4)
+ ("rust-wasi" ,rust-wasi-0.9)
+ ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2))
+ #:cargo-development-inputs
+ (("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3))))
+ (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-getrandom-0.1
(package
+ (inherit rust-getrandom-0.2)
(name "rust-getrandom")
(version "0.1.14")
(source
@@ -11756,7 +11787,6 @@ API library @code{gdi32}.")
(sha256
(base32
"1sq30li71h19rhnhs1h6576ja68insajx8wvh1nn088r8pc8vg3s"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
@@ -11767,13 +11797,7 @@ API library @code{gdi32}.")
("rust-log" ,rust-log-0.4)
("rust-stdweb" ,rust-stdweb-0.4)
("rust-wasi" ,rust-wasi-0.9)
- ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))
- (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))))
+ ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))))
(define-public rust-gettext-rs-0.5
(package