Subject: [bug#68312] [PATCH 043/156] gnu: Add rust-devise-core-0.4.

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

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

Change-Id: I11a24863e258bdfa74f165cc7fd276a6ae37b828
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++--------
 1 file changed, 22 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2e46f69cb18..e4abfd9d771 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21011,6 +21011,26 @@ (define-public rust-devise-codegen-0.2
        #:cargo-inputs
        (("rust-devise-core" ,rust-devise-core-0.2)
         ("rust-quote" ,rust-quote-0.6))))))
+
+(define-public rust-devise-core-0.4
+  (package
+    (name "rust-devise-core")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "devise_core" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0sp5idq0idng9i5kwjd8slvc724s97r28arrhyqq1jpx1ax0vd9m"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-proc-macro2-diagnostics" ,rust-proc-macro2-diagnostics-0.10)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))))
     (home-page "https://github.com/SergioBenitez/Devise")
     (synopsis "Library for devising derives and other procedural macros")
     (description
@@ -21020,6 +21040,7 @@ (define-public rust-devise-codegen-0.2
 
 (define-public rust-devise-core-0.2
   (package
+    (inherit rust-device-core-0.4)
     (name "rust-devise-core")
     (version "0.2.1")
     (source
@@ -21029,20 +21050,13 @@ (define-public rust-devise-core-0.2
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0wr3jdzzibpafz73hcca83wnzdgjinvm7axmxnyfkbasbnfkw1fi"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-bitflags" ,rust-bitflags-1)
         ("rust-proc-macro2" ,rust-proc-macro2-0.4)
         ("rust-quote" ,rust-quote-0.6)
-        ("rust-syn" ,rust-syn-0.15))))
-    (home-page "https://github.com/SergioBenitez/Devise")
-    (synopsis "Library for devising derives and other procedural macros")
-    (description
-     "This package provides a library for devising derives and other
-procedural macros.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-syn" ,rust-syn-0.15))))))
 
 (define-public rust-dhcp4r-0.2
   (package
-- 
2.41.0