gnu: rust-serde-derive-0.9: Use snippet.

* gnu/packages/crates-io.scm (rust-serde-derive-0.9): Add snippet.
[phases]: Remove fix-cargo-toml phase.

Change-Id: I27e5999daa849c2e9300ab5d7174c093a23f28ea
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Herman Rimm 2024-12-25 20:49:52 +01:00 committed by Efraim Flashner
parent ce305be822
commit f24bde1899
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -74472,20 +74472,14 @@ (define-public rust-serde-derive-0.9
(origin
(method url-fetch)
(uri (crate-uri "serde_derive" version))
(file-name
(string-append name "-" version ".tar.gz"))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"1fkldf0lnl6pwxs00qpyp79m30qmfpi3bk0wm22211ylyikdi3wp"))))
(base32 "1fkldf0lnl6pwxs00qpyp79m30qmfpi3bk0wm22211ylyikdi3wp"))
(modules '((guix build utils)))
(snippet #~(substitute* "Cargo.toml"
((", path =.*}") "}")))))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-cargo-toml
(lambda _
(substitute* "Cargo.toml"
((", path =.*}") "}"))
#t)))
#:cargo-inputs
`(#:cargo-inputs
(("rust-quote" ,rust-quote-0.3)
("rust-serde-codegen-internals" ,rust-serde-codegen-internals-0.14)
("rust-syn" ,rust-syn-0.11))))))