aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-01-24 00:11:34 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-01-24 00:11:34 +0100
commitaab1c03ecfe98b9fa3aae01cd7191bffafac095d (patch)
tree930b8b00a1c37323bf708aa1d2ace660219ef115
parent2f3206f00eff57f9b8ffdd16034af3873c3969b8 (diff)
downloadguix-aab1c03ecfe98b9fa3aae01cd7191bffafac095d.tar
guix-aab1c03ecfe98b9fa3aae01cd7191bffafac095d.tar.gz
gnu: Add rust-rand-chacha-0.3.
* gnu/packages/crates-io.scm (rust-rand-chacha-0.3): New variable. (rust-rand-chacha-0.2): Inherit from above.
-rw-r--r--gnu/packages/crates-io.scm31
1 files changed, 25 insertions, 6 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e5fee2e63a..1e3d751bbc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -26394,8 +26394,32 @@ useful types and distributions, and some randomness-related algorithms.")
(("rust-libc" ,rust-libc-0.2)
("rust-rand" ,rust-rand-0.4))))))
+(define-public rust-rand-chacha-0.3
+ (package
+ (name "rust-rand-chacha")
+ (version "0.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "rand_chacha" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "03df2xh5nbdvwr17qm3sviaxa95r8yhm1nil2pr0pqf90p7ka9z1"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-ppv-lite86" ,rust-ppv-lite86-0.2)
+ ("rust-rand-core" ,rust-rand-core-0.6))))
+ (home-page "https://crates.io/crates/rand_chacha")
+ (synopsis "ChaCha random number generator")
+ (description
+ "This package provides the ChaCha random number generator.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-rand-chacha-0.2
(package
+ (inherit rust-rand-chacha-0.3)
(name "rust-rand-chacha")
(version "0.2.2")
(source
@@ -26407,15 +26431,10 @@ useful types and distributions, and some randomness-related algorithms.")
(sha256
(base32
"00il36fkdbsmpr99p9ksmmp6dn1md7rmnwmz0rr77jbrca2yvj7l"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-c2-chacha" ,rust-c2-chacha-0.2)
- ("rust-rand-core" ,rust-rand-core-0.5))))
- (home-page "https://crates.io/crates/rand-chacha")
- (synopsis "ChaCha random number generator")
- (description "ChaCha random number generator.")
- (license (list license:asl2.0 license:expat))))
+ ("rust-rand-core" ,rust-rand-core-0.5))))))
(define-public rust-rand-chacha-0.1
(package