Subject: [PATCH 41/81] gnu: Add rust-asn1-rs-derive-0.5.

From: Herman Rimm <[email-masked]>
Date: Mon, 20 May 2024 10:58:46 +0200

* gnu/packages/crates-tls.scm (rust-asn1-rs-derive-0.5): Add variable.
(rust-asn1-rs-derive-0.4): Inherit from rust-asn1-rs-derive-0.5.

Change-Id: I9691ef55df2a69b81f235abbcb01aad960605046
---
 gnu/packages/crates-tls.scm | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-tls.scm b/gnu/packages/crates-tls.scm
index 105f692a08..e37d5ada0c 100644
--- a/gnu/packages/crates-tls.scm
+++ b/gnu/packages/crates-tls.scm
@@ -195,8 +195,35 @@ (define-public rust-asn1-rs-0.3
                                    ("rust-pem" ,rust-pem-1)
                                    ("rust-trybuild" ,rust-trybuild-1))))))
 
+(define-public rust-asn1-rs-derive-0.5
+  (package
+    (name "rust-asn1-rs-derive")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "asn1-rs-derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+          "1hdabswlsqwysmb1kpyyl2nvi67z1gzxxba4lycnx5kiymgmfy3k"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-proc-macro2-1
+                           rust-quote-1
+                           rust-syn-2
+                           rust-synstructure-0.13)))
+    (home-page "https://github.com/rusticata/asn1-rs")
+    (synopsis "Derive macros for the `asn1-rs` crate")
+    (description
+     "This package provides derive macros for the
+@code{asn1-rs} crate.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-asn1-rs-derive-0.4
   (package
+    (inherit rust-asn1-rs-derive-0.5)
     (name "rust-asn1-rs-derive")
     (version "0.4.0")
     (source (origin
@@ -206,18 +233,12 @@ (define-public rust-asn1-rs-derive-0.4
               (sha256
                (base32
                 "0v7fgmnzk7jjxv51grhwzcx5bf167nlqwk3vcmq7xblf5s4karbj"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
         ("rust-syn" ,rust-syn-1)
-        ("rust-synstructure" ,rust-synstructure-0.12))))
-    (home-page "https://github.com/rusticata/asn1-rs")
-    (synopsis "Derive macros for the `asn1-rs` crate")
-    (description
-     "This package provides derive macros for the @code{asn1-rs} crate.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-synstructure" ,rust-synstructure-0.12))))))
 
 (define-public rust-asn1-rs-derive-0.1
   (package
-- 
2.41.0