Subject: [bug#69624] [PATCH v2 1/8] gnu: Add rust-proc-macro2-diagnostics-0.9.

From: Aaron Covrig <[email-masked]>
Date: Fri, 5 Apr 2024 20:44:31 -0400

* gnu/packages/crates-io.scm (rust-proc-macro2-diagnostics-0.9): New variable.

Signed-off-by: Aaron Covrig <[email-masked]>
---
 gnu/packages/crates-io.scm | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6494abb3d4..36b5eb5496 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -55843,9 +55843,32 @@ (define-public rust-proc-macro2-diagnostics-0.10
        #:cargo-development-inputs (("rust-trybuild" ,rust-trybuild-1))))
     (home-page "https://github.com/SergioBenitez/proc-macro2-diagnostics")
     (synopsis "Diagnostics for proc-macro2")
-    (description "Diagnostics for proc-macro2.")
+    (description "Diagnostics for stable and nightly proc-macros!")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-proc-macro2-diagnostics-0.9
+  (package
+    (inherit rust-proc-macro2-diagnostics-0.10)
+    (name "rust-proc-macro2-diagnostics")
+    (version "0.9.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "proc-macro2-diagnostics" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1nmazlb1dkznjds7qwms7yxhi33ajc3isji2lsgx8r3lsqk9gwjb"))))
+    (arguments
+     `(#:cargo-test-flags '("--" "--skip=main")
+       #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-1)
+                       ("rust-yansi" ,rust-yansi-0.5)
+                       ;; Add missing dependency
+                       ("rust-version-check" ,rust-version-check-0.9))
+       #:cargo-development-inputs (("rust-trybuild" ,rust-trybuild-1)
+                                   ("rust-version-check" ,rust-version-check-0.9))))))
+
 (define-public rust-proc-mounts-0.3
   (package
     (name "rust-proc-mounts")

base-commit: f4a90187d16e13af20aa90bb0010b4cddcc15aca
-- 
2.41.0