me
/
guix
Archived
1
0
Fork 0

gnu: Add rust-rand-distr-0.4.

* gnu/packages/crates-io.scm (rust-rand-distr-0.4): New variable.
master
Ricardo Wurmus 2021-11-10 06:59:29 +00:00
parent 0cd5039345
commit c7ffcdea70
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 35 additions and 0 deletions

View File

@ -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")