From ad6f956c6601750b58684db8e4e8d58ef98d969e Mon Sep 17 00:00:00 2001 From: John Soo Date: Sat, 14 Dec 2019 19:46:28 -0800 Subject: [PATCH] gnu: Add rust-synstructure-0.10. * gnu/packages/crates-io.scm (rust-synstructure-0.10): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 57bf22b784..e3d93cac17 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -6681,6 +6681,35 @@ (define-public rust-syn-0.15 ("rust-walkdir" ,rust-walkdir-2.2)))) (properties '()))) +(define-public rust-synstructure-0.10 + (package + (name "rust-synstructure") + (version "0.10.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "synstructure" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0grirdkgh2wl4hf9a3nbiazpgccxgq54kn52ms0xrr6njvgkwd82")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-0.4) + ("rust-quote" ,rust-quote-1.0) + ("rust-syn" ,rust-syn-0.15) + ("rust-unicode-xid" ,rust-unicode-xid-0.1)) + #:cargo-development-inputs + (("rust-synstructure-test-traits" ,rust-synstructure-test-traits-0.1)))) + (home-page "https://github.com/mystor/synstructure") + (synopsis "Helper methods and macros for custom derives") + (description + "Helper methods and macros for custom derives.") + (license license:expat))) + (define-public rust-synstructure-test-traits-0.1 (package (name "rust-synstructure-test-traits")