From daaa7c4c53aaf1689265c592e98d989e8c4f89a0 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 6 Oct 2021 17:40:31 +0200 Subject: [PATCH] gnu: Add rust-strum-0.21. * gnu/packages/crates-io.scm (rust-strum-0.21): New variable. (rust-strum-0.20): Inherit from above. --- gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 92f3b7db23..672a840915 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -48651,8 +48651,32 @@ struct.") "Parse command line argument by defining a struct, derive crate.") (license (list license:asl2.0 license:expat)))) +(define-public rust-strum-0.21 + (package + (name "rust-strum") + (version "0.21.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "strum" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1qnd2by1zrwgx7li0hmwy7jbzjwz1ky697qjg85nga8zzny6py5a")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-strum-macros" ,rust-strum-macros-0.21)))) + (home-page "https://github.com/Peternator7/strum") + (synopsis "Set of traits for working with enums and strings") + (description + "Strum is a set of macros and traits for working with enums and strings +easier in Rust.") + (license license:expat))) + (define-public rust-strum-0.20 (package + (inherit rust-strum-0.21) (name "rust-strum") (version "0.20.0") (source @@ -48662,17 +48686,10 @@ struct.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0p5cslmdnz261kiwmm4h7qsmv9bh83r0f9lq6f2z2mxsnl4wa63k")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs - (("rust-strum-macros" ,rust-strum-macros-0.20)))) - (home-page "https://github.com/Peternator7/strum") - (synopsis "Set of traits for working with enums and strings") - (description - "Strum is a set of macros and traits for working with enums and strings -easier in Rust.") - (license license:expat))) + (("rust-strum-macros" ,rust-strum-macros-0.20)))))) (define-public rust-strum-0.19 (package