Subject: [bug#68312] [PATCH 154/156] gnu: Add rust-x509-parser-0.13.

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

* gnu/packages/crates-io.scm (rust-x509-parser-0.13): New variable.
(rust-x509-parser-0.12): Inherit from rust-x509-parser-0.13.

Change-Id: Ie0c9a32f162d6534ef13a70601d0576b25b7caca
---
 gnu/packages/crates-io.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a5fe2608c75..1a95fd596d3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -86174,9 +86174,35 @@ (define-public rust-x509-parser-0.14
                        ("rust-thiserror" ,rust-thiserror-1)
                        ("rust-time" ,rust-time-0.3))))))
 
+(define-public rust-x509-parser-0.13
+  (package
+    (inherit rust-x509-parser-0.14)
+    (name "rust-x509-parser")
+    (version "0.13.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "x509-parser" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "077bi0xyaa8cmrqf3rrw1z6kkzscwd1nxdxgs7mgz2ambg7bmfcz"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-asn1-rs" ,rust-asn1-rs-0.3)
+                       ("rust-base64" ,rust-base64-0.13)
+                       ("rust-data-encoding" ,rust-data-encoding-2)
+                       ("rust-der-parser" ,rust-der-parser-7)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-nom" ,rust-nom-7)
+                       ("rust-oid-registry" ,rust-oid-registry-0.4)
+                       ("rust-ring" ,rust-ring-0.16)
+                       ("rust-rusticata-macros" ,rust-rusticata-macros-4)
+                       ("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-time" ,rust-time-0.3))))))
+
 (define-public rust-x509-parser-0.12
   (package
-    (inherit rust-x509-parser-0.15)
+    (inherit rust-x509-parser-0.13)
     (name "rust-x509-parser")
     (version "0.12.0")
     (source
-- 
2.41.0