diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-11-10 06:59:29 +0000 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-11-11 15:39:11 +0000 |
commit | c7ffcdea70cfdb4504767cac66e65d65a696ed28 (patch) | |
tree | e762a002e88e65655320b3ddadba8999353c6c87 | |
parent | 0cd5039345f6a937b1d28413d0b8bcca63236041 (diff) | |
download | guix-c7ffcdea70cfdb4504767cac66e65d65a696ed28.tar.gz |
gnu: Add rust-rand-distr-0.4.
* gnu/packages/crates-io.scm (rust-rand-distr-0.4): New variable.
-rw-r--r-- | gnu/packages/crates-io.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 26fd44d097..16b11c9b83 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -39405,6 +39405,41 @@ tools for implementation.") #:cargo-inputs (("rust-rand-core" ,rust-rand-core-0.3)))))) +(define-public rust-rand-distr-0.4 + (package + (name "rust-rand-distr") + (version "0.4.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "rand_distr" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0brd2946xfapm2bmhmczfbwck041x7khsfhqxw1f24kxis7m8kcn")))) + (build-system cargo-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'configure 'patch-Cargo.toml + (lambda _ + (substitute* '("Cargo.toml" + "guix-vendor/rust-average-0.13.1.tar.gz/Cargo.toml") + ;; The resolver feature is not supported by this version of Cargo. + (("resolver = \"2\".*") ""))))) + #:cargo-inputs + (("rust-average" ,rust-average-0.13) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-rand" ,rust-rand-0.8) + ("rust-serde" ,rust-serde-1) + ("rust-special" ,rust-special-0.8)) + #:cargo-development-inputs + (("rust-rand-pcg" ,rust-rand-pcg-0.3)))) + (home-page "https://rust-random.github.io/book/") + (synopsis "Sampling from random number distributions") + (description "This package provides tool for sampling from random number +distributions.") + (license (list license:expat license:asl2.0)))) + (define-public rust-rand-distr-0.3 (package (name "rust-rand-distr") |