Subject: [bug#76574] [PATCH 4/9] gnu: Add rust-num-enum-0.6.

From: Nicolas Goaziou <[email-masked]>
Date: Wed, 26 Feb 2025 01:00:41 +0100

* gnu/packages/crates-io.scm (rust-num-enum-0.6):
(rust-num-enum-derive-0.6): New variables.

Change-Id: Idb47839701ea15c9fa2acb18430f6b7a532a9b36
---
 gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8478a33501..f21c56e605 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -48515,6 +48515,22 @@ (define-public rust-num-enum-0.7
 primitives and enums easier.")
     (license (list license:bsd-3 license:expat license:asl2.0))))
 
+(define-public rust-num-enum-0.6
+  (package
+    (inherit rust-num-enum-0.7)
+    (name "rust-num-enum")
+    (version "0.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "num_enum" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "18bna04g6zq978z2b4ygz0f8pbva37id4xnpgwh8l41w1m1mn0bs"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-num-enum-derive" ,rust-num-enum-derive-0.6))))))
+
 (define-public rust-num-enum-0.5
   (package
     (inherit rust-num-enum-0.7)
@@ -48589,6 +48605,25 @@ (define-public rust-num-enum-derive-0.7
 primitives and enums easier.")
     (license (list license:bsd-3 license:expat license:asl2.0))))
 
+(define-public rust-num-enum-derive-0.6
+  (package
+    (inherit rust-num-enum-derive-0.7)
+    (name "rust-num-enum-derive")
+    (version "0.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "num_enum_derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "19k57c0wg56vzzj2w77jsi8nls1b8xh8pvpzjnrgf8d9cnvpsrln"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-proc-macro-crate" ,rust-proc-macro-crate-1)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))))))
+
 (define-public rust-num-enum-derive-0.5
   (package
     (inherit rust-num-enum-derive-0.7)
-- 
2.48.1