Subject: [PATCH rust-team 08/10] gnu: rust-uint-0.9: Use snippet.

From: Herman Rimm <[email-masked]>
Date: Mon, 30 Dec 2024 18:57:43 +0100

* gnu/packages/crates-io.scm (rust-uint-0.9): Add snippet.
[arguments]: Remove adjust-cargo-toml phase.

Change-Id: I9ff08abe419e860e4cb77b94b401466e2e113cc3
---
 gnu/packages/crates-io.scm | 23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index aa5ce6f5087..bb89ad6e2c9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -90529,12 +90529,15 @@ (define-public rust-uint-0.9
     (name "rust-uint")
     (version "0.9.5")
     (source
-      (origin
-        (method url-fetch)
-        (uri (crate-uri "uint" version))
-        (file-name (string-append name "-" version ".tar.gz"))
-        (sha256
-          (base32 "0ljb2q0waadsr56w6j5wwchwibby8bbsf09wnv54zc2k5jx4pxkn"))))
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "uint" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0ljb2q0waadsr56w6j5wwchwibby8bbsf09wnv54zc2k5jx4pxkn"))
+       (modules '((guix build utils)))
+       (snippet #~(substitute* "Cargo.toml"
+                    (("integer") "default")))))
     (build-system cargo-build-system)
     (arguments
       `(#:cargo-inputs
@@ -90547,13 +90550,7 @@ (define-public rust-uint-0.9
         #:cargo-development-inputs
         (("rust-criterion" ,rust-criterion-0.4)
          ("rust-num-bigint" ,rust-num-bigint-0.4)
-         ("rust-rug" ,rust-rug-1))
-        #:phases
-        (modify-phases %standard-phases
-          (add-after 'unpack 'adjust-cargo-toml
-            (lambda _
-              (substitute* "Cargo.toml"
-                (("integer") "default")))))))
+         ("rust-rug" ,rust-rug-1))))
     (inputs
      (list gmp mpc mpfr))
     (home-page "https://parity.io")
-- 
2.45.2