gnu: Add rust-serde-macros-0.4.

* gnu/packages/crates-io.scm (rust-serde-macros-0.4): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Valentin Ignatev 2020-01-26 16:06:46 +03:00 committed by Efraim Flashner
parent be9655d96d
commit 537f998be7
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -14400,6 +14400,42 @@ (define-public rust-serde-json-1.0
"This package provides a JSON serialization file format.")
(license (list license:expat license:asl2.0))))
(define-public rust-serde-macros-0.4
(package
(name "rust-serde-macros")
(version "0.4.4")
(source
(origin
(method url-fetch)
(uri (crate-uri "serde_macros" version))
(file-name
(string-append name "-" version ".tar.gz"))
(sha256
(base32
"1717rpncvvyvyrpb7hdjgxpiki9vdgygwv2r3d9aal5n8cm8xi8i"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-cargo-toml
(lambda _
(substitute* "Cargo.toml"
((", path =.*}") "}"))
#t)))
#:cargo-inputs
(("rust-serde-codegen" ,rust-serde-codegen-0.4))
#:cargo-development-inputs
(("rust-num" ,rust-num-0.2)
("rust-rustc-serialize" ,rust-rustc-serialize-0.3)
("rust-serde" ,rust-serde-0.4))))
(home-page "https://serde.rs")
(synopsis
"Macros to auto-generate implementations for the serde framework")
(description
"Macros to auto-generate implementations for the serde framework.")
(license (list license:expat license:asl2.0))))
(define-public rust-serde-test-1.0
(package
(name "rust-serde-test")