aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorValentin Ignatev <valentignatev@gmail.com>2020-01-26 16:06:46 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-02-26 14:00:53 +0200
commit537f998be7200adc59a200f8209e3514c120f099 (patch)
tree03b947f7b8055bed4aacdba7295a4624ad17f7d2 /gnu/packages
parentbe9655d96d294e1ac9915c30e0d506ad3a8de4db (diff)
downloadpatches-537f998be7200adc59a200f8209e3514c120f099.tar
patches-537f998be7200adc59a200f8209e3514c120f099.tar.gz
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>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2041e0e3cb..a68ddcd2ff 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -14400,6 +14400,42 @@ for the serde framework.")
"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")