guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/07: gnu: rust-rand-distr-0.4: Move code changes to snippet.


From: guix-commits
Subject: 07/07: gnu: rust-rand-distr-0.4: Move code changes to snippet.
Date: Wed, 11 May 2022 05:21:41 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 427dbce3a86d2d9d2229e858af24083f912f9fe9
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed May 11 11:29:37 2022 +0300

    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.
---
 gnu/packages/crates-io.scm | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c595e920aa..7c55c7593e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -46943,17 +46943,16 @@ tools for implementation.")
        (uri (crate-uri "rand_distr" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (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)
     (arguments
-     `(#:phases
-       (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
+     `(#:cargo-inputs
        (("rust-average" ,rust-average-0.13)
         ("rust-num-traits" ,rust-num-traits-0.2)
         ("rust-rand" ,rust-rand-0.8)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]