diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-06-15 12:50:54 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-06-16 12:47:41 +0200 |
commit | f94ded6aab17346407ef929300be7eec64c5dbe1 (patch) | |
tree | 2106ad68f253b112dfcec53e8682b286f90f0c82 /gnu/packages/crates-io.scm | |
parent | 5d20341c76f547b487984887fe4e431f4611a673 (diff) | |
download | guix-f94ded6aab17346407ef929300be7eec64c5dbe1.tar.gz guix-f94ded6aab17346407ef929300be7eec64c5dbe1.zip |
gnu: Add rust-rand-distr-0.3.
* gnu/packages/crates-io.scm (rust-rand-distr-0.3): New variable.
(rust-rand-distr-0.2): Inherit from above.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r-- | gnu/packages/crates-io.scm | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index b94f8517ba..4f3a29fee0 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -34014,8 +34014,35 @@ tools for implementation.") #:cargo-inputs (("rust-rand-core" ,rust-rand-core-0.3)))))) +(define-public rust-rand-distr-0.3 + (package + (name "rust-rand-distr") + (version "0.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "rand-distr" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0mlxzzzbwpxxnvy79w0kb332r6vcw38jiglx5s5zna9rv8m57sf9")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-num-traits" ,rust-num-traits-0.2) + ("rust-rand" ,rust-rand-0.7)) + #:cargo-development-inputs + (("rust-average" ,rust-average-0.10) + ("rust-rand-pcg" ,rust-rand-pcg-0.2)))) + (home-page "https://crates.io/crates/rand_distr") + (synopsis "Sampling from random number distributions") + (description + "Sampling from random number distributions.") + (license (list license:expat license:asl2.0)))) + (define-public rust-rand-distr-0.2 (package + (inherit rust-rand-distr-0.3) (name "rust-rand-distr") (version "0.2.2") (source @@ -34027,18 +34054,12 @@ tools for implementation.") (sha256 (base32 "1cpz577qid09lirjjhhn98yqdwsv0c01jf973pxpcr9svp5pm5wn")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-rand" ,rust-rand-0.7)) #:cargo-development-inputs (("rust-average" ,rust-average-0.10) - ("rust-rand-pcg" ,rust-rand-pcg-0.2)))) - (home-page "https://crates.io/crates/rand_distr") - (synopsis "Sampling from random number distributions") - (description - "Sampling from random number distributions.") - (license (list license:expat license:asl2.0)))) + ("rust-rand-pcg" ,rust-rand-pcg-0.2)))))) (define-public rust-rand-hc-0.3 (package |