Subject: [PATCH 042/156] gnu: Add rust-devise-codegen-0.4.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:52:19 +0100

* gnu/packages/crates-io.scm (rust-devise-codegen-0.4): New variable.
(rust-devise-codegen-0.2): Inherit from rust-devise-0.4.

Change-Id: I2d43453aa9a89160ed3ec3bf97e5e18123ac145a
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0dbc8e5b712..2e46f69cb18 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20969,6 +20969,23 @@ (define-public rust-devise-0.2
        #:cargo-inputs
        (("rust-devise-codegen" ,rust-devise-codegen-0.2)
         ("rust-devise-core" ,rust-devise-core-0.2))))))
+
+(define-public rust-devise-codegen-0.4
+  (package
+    (name "rust-devise-codegen")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "devise_codegen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1mpy5mmsigkj5f72gby82yk4advcqj97am2wzn0dwkj8vnwg934w"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-devise-core" ,rust-devise-core-0.4)
+                       ("rust-quote" ,rust-quote-1))))
     (home-page "https://github.com/SergioBenitez/Devise")
     (synopsis "Library for devising derives and other procedural macros")
     (description
@@ -20976,8 +20993,10 @@ (define-public rust-devise-0.2
 procedural macros.")
     (license (list license:expat license:asl2.0))))
 
+
 (define-public rust-devise-codegen-0.2
   (package
+    (inherit rust-device-codegen-0.4)
     (name "rust-devise-codegen")
     (version "0.2.1")
     (source
@@ -20987,12 +21006,11 @@ (define-public rust-devise-codegen-0.2
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0lxbixni2v6snx2mkgi0kyq5dv8v6c5s57b6wc47q4hqs6884yza"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-devise-core" ,rust-devise-core-0.2)
-        ("rust-quote" ,rust-quote-0.6))))
+        ("rust-quote" ,rust-quote-0.6))))))
     (home-page "https://github.com/SergioBenitez/Devise")
     (synopsis "Library for devising derives and other procedural macros")
     (description
-- 
2.41.0