Subject: [PATCH rust-team 8/9] gnu: rust-serde-test-0.8: Use snippet.

From: Herman Rimm <[email-masked]>
Date: Wed, 25 Dec 2024 20:49:54 +0100

* gnu/packages/crates-io.scm (rust-serde-test-0.8): Add snippet.
[phases]: Remove fix-Cargo-toml phase.

Change-Id: I39a361603f5b7277e99c3b15c0b2ef4ffafd422f
---
 gnu/packages/crates-io.scm | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e5c93436c4..7b8d6bedf3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -76542,17 +76542,12 @@ (define-public rust-serde-test-0.8
        (uri (crate-uri "serde_test" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32
-         "1m939j7cgs7i58r6vxf0ffp3nbr8advr8p9dqa9w8zk0z2yks2qi"))))
+        (base32 "1m939j7cgs7i58r6vxf0ffp3nbr8advr8p9dqa9w8zk0z2yks2qi"))
+       (modules '((guix build utils)))
+       (snippet #~(substitute* "Cargo.toml"
+                    ((", path = \"../serde\"") "")))))
     (arguments
-     `(#:cargo-inputs (("rust-serde" ,rust-serde-0.8))
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'fix-Cargo-toml
-           (lambda _
-             (substitute* "Cargo.toml"
-               ((", path = \"../serde\"") ""))
-             #t)))))))
+     `(#:cargo-inputs (("rust-serde" ,rust-serde-0.8))))))
 
 (define-public rust-serde-transcode-1
   (package
-- 
2.45.2