diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-01-04 11:44:34 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:57:17 +0200 |
commit | c4ba897aa9b8fd63dd990a23617ab52d2b4c77cb (patch) | |
tree | 276401689131f04799e1fe6a08550fb58dd5374c | |
parent | db5c7b058e83cccdba8efafcc38ceb0ed02612be (diff) | |
download | guix-c4ba897aa9b8fd63dd990a23617ab52d2b4c77cb.tar.gz |
gnu: Add rust-num-enum-0.7.
* gnu/packages/crates-io.scm (rust-num-enum-0.7): New variable. (rust-num-enum-0.5): Inherit from rust-num-enum-0.7. Change-Id: I5b8c0a40ff8090920dc8a54350aba8f510c63410
-rw-r--r-- | gnu/packages/crates-io.scm | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index db34b77b73..a86d8e6433 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -45046,8 +45046,36 @@ Rust.") (description "Numeric syntax extensions in Rust.") (license (list license:expat license:asl2.0)))) +(define-public rust-num-enum-0.7 + (package + (name "rust-num-enum") + (version "0.7.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "num_enum" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1h1pncbi7zviymadn521ycj7gdq84q1x3c4zqc015n76j7am2dv8")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; unresolved import `num_enum` + #:cargo-inputs (("rust-num-enum-derive" ,rust-num-enum-derive-0.7)) + #:cargo-development-inputs (("rust-anyhow" ,rust-anyhow-1) + ("rust-paste" ,rust-paste-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.5 (package + (inherit rust-num-enum-0.7) (name "rust-num-enum") (version "0.5.11") (source @@ -45057,7 +45085,6 @@ Rust.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1japmqhcxwn1d3k7q8jw58y7xfby51s16nzd6dkj483cj2pnqr0z")))) - (build-system cargo-build-system) (arguments `(#:tests? #false ;missing files #:cargo-inputs @@ -45066,13 +45093,7 @@ Rust.") (("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)))) + ("rust-walkdir" ,rust-walkdir-2)))))) (define-public rust-num-enum-0.4 (package |