mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 14:47:20 +01:00
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:
parent
ce305be822
commit
f24bde1899
1 changed files with 6 additions and 12 deletions
|
@ -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))))))
|
||||
|
|
Loading…
Reference in a new issue