diff options
author | Marius Bakke <marius@gnu.org> | 2022-07-26 11:27:53 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-07-27 12:31:26 +0200 |
commit | 2e217866cdfd67403db17d8bf011b12a9cbe4889 (patch) | |
tree | fe4cb6941164259bc1ca2e99f6b8439e2fb9a900 /gnu/packages/crates-io.scm | |
parent | 986fc1795618304075616a4463a4dfddae5f0791 (diff) | |
download | guix-2e217866cdfd67403db17d8bf011b12a9cbe4889.tar guix-2e217866cdfd67403db17d8bf011b12a9cbe4889.tar.gz |
gnu: rust-num-enum: Add 0.5.7.
* gnu/packages/crates-io.scm (rust-num-enum-0.5): New variable.
(rust-num-enum-0.4): Inherit from it.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r-- | gnu/packages/crates-io.scm | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 58074a075a..0cf8f899a2 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -38579,8 +38579,37 @@ Rust.") (description "Numeric syntax extensions in Rust.") (license (list license:expat license:asl2.0)))) +(define-public rust-num-enum-0.5 + (package + (name "rust-num-enum") + (version "0.5.7") + (source + (origin + (method url-fetch) + (uri (crate-uri "num_enum" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1j8rq7i4xnbzy72z82k41469xlj1bmn4ixagd9wlbvv2ark9alyg")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #false ;missing files + #:cargo-inputs + (("rust-num-enum-derive" ,rust-num-enum-derive-0.5)) + #:cargo-development-inputs + (("rust-anyhow" ,rust-anyhow-1) + ("rust-rustversion" ,rust-rustversion-1) + ("rust-trybuild" ,rust-trybuild-1) + ("rust-walkdir" ,rust-walkdir-2)))) + (home-page "https://github.com/illicitonion/num_enum") + (synopsis "Macros easing inter-operation between primitives and enums") + (description + "This library provides procedural macros to make inter-operation between +primitives and enums easier.") + (license (list license:bsd-3 license:expat license:asl2.0)))) + (define-public rust-num-enum-0.4 (package + (inherit rust-num-enum-0.5) (name "rust-num-enum") (version "0.4.3") (source @@ -38597,11 +38626,6 @@ Rust.") (("rust-derivative" ,rust-derivative-2) ("rust-num-enum" ,rust-num-enum-0.4) ("rust-num-enum-derive" ,rust-num-enum-derive-0.4)))) - (home-page "https://github.com/illicitonion/num_enum") - (synopsis "Macros easing inter-operation between primitives and enums") - (description - "This library provides procedural macros to make inter-operation between -primitives and enums easier.") (license license:bsd-3))) (define-public rust-num-enum-derive-0.5 |