gnu: rust-rand-distr-0.4: Move code changes to snippet.
* gnu/packages/crates-io.scm (rust-rand-distr-0.4)[arguments]: Move code relaxing version requirements ... [source]: ... to a snippet.
parent
d47b7bbfc8
commit
427dbce3a8
|
@ -46943,17 +46943,16 @@ tools for implementation.")
|
||||||
(uri (crate-uri "rand_distr" version))
|
(uri (crate-uri "rand_distr" version))
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0brd2946xfapm2bmhmczfbwck041x7khsfhqxw1f24kxis7m8kcn"))))
|
(base32 "0brd2946xfapm2bmhmczfbwck041x7khsfhqxw1f24kxis7m8kcn"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
(substitute* "Cargo.toml"
|
||||||
|
;; The resolver feature is not supported by our versions of Cargo.
|
||||||
|
(("resolver = \"2\".*") ""))))))
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:cargo-inputs
|
||||||
(modify-phases %standard-phases
|
|
||||||
(add-after 'configure 'patch-Cargo.toml
|
|
||||||
(lambda _
|
|
||||||
(substitute* "Cargo.toml"
|
|
||||||
;; The resolver feature is not supported by this version of Cargo.
|
|
||||||
(("resolver = \"2\".*") "")))))
|
|
||||||
#:cargo-inputs
|
|
||||||
(("rust-average" ,rust-average-0.13)
|
(("rust-average" ,rust-average-0.13)
|
||||||
("rust-num-traits" ,rust-num-traits-0.2)
|
("rust-num-traits" ,rust-num-traits-0.2)
|
||||||
("rust-rand" ,rust-rand-0.8)
|
("rust-rand" ,rust-rand-0.8)
|
||||||
|
|
Reference in New Issue