aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-02-10 15:40:54 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-02-13 11:50:26 +0100
commit8db412a641c7ff7ed389c2e7475dec60441ca896 (patch)
tree9b56b4afb5cad682257cb0f11d01e14c96cacc2f /gnu
parentaed6d241483d2843c4d5053dda919688f7882f25 (diff)
downloadguix-8db412a641c7ff7ed389c2e7475dec60441ca896.tar.gz
guix-8db412a641c7ff7ed389c2e7475dec60441ca896.zip
gnu: Add rust-derive-is-enum-variant-0.1.
* gnu/packages/crates-io.scm (rust-derive-is-enum-variant-0.1): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 93e6ee0161..f802d43663 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -10316,6 +10316,31 @@ for arbitrary structs.")
error-chain.")
(license (list license:expat license:asl2.0))))
+(define-public rust-derive-is-enum-variant-0.1
+ (package
+ (name "rust-derive-is-enum-variant")
+ (version "0.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "derive_is_enum_variant" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "15w18649m4h47pdpr04id0wv8br8bg606zvrafcrfijihicqib6h"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-heck" ,rust-heck-0.3)
+ ("rust-quote" ,rust-quote-0.3)
+ ("rust-syn" ,rust-syn-0.11))))
+ (home-page "https://github.com/fitzgen/derive_is_enum_variant")
+ (synopsis "Automatically derives predicates for enums")
+ (description
+ "This package automatically derives @samp{is_dog} and @samp{is_cat}
+methods for @samp{enum Pet @{ Dog, Cat @}}.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-derive-more-0.99
(package
(name "rust-derive-more")