gnu: Add rust-rand-distr-0.4.
* gnu/packages/crates-io.scm (rust-rand-distr-0.4): New variable.
This commit is contained in:
		
							parent
							
								
									0cd5039345
								
							
						
					
					
						commit
						c7ffcdea70
					
				
					 1 changed files with 35 additions and 0 deletions
				
			
		|  | @ -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") | ||||
|  |  | |||
		Reference in a new issue