Subject: [bug#66802] [PATCH 17/21] gnu: Add rust-pkcs1-0.4.

From: Jaeme Sifat <[email-masked]>
Date: Sat, 28 Oct 2023 18:53:37 -0400

* gnu/packages/crates-io.scm (rust-pkcs1-0.4): New variable.

Signed-off-by: Jaeme Sifat <[email-masked]>
Change-Id: I32b754b838ebf331d36a93beac412e95229c4bcb
---
 gnu/packages/crates-io.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7137582746..e4a02ab28e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51578,6 +51578,27 @@ (define-public rust-pkcs1-0.7
 (RFC 8017).")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-pkcs1-0.4
+  (package
+    (inherit rust-pkcs1-0.7)
+    (name "rust-pkcs1")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pkcs1" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "06gpasl1v2d2r74xa8vm72vqy6ryxjynwxna5s5cjk65vzdkpwzg"))))
+    (arguments
+     `(#:cargo-inputs (("rust-der" ,rust-der-0.6)
+                       ("rust-pkcs8" ,rust-pkcs8-0.9)
+                       ("rust-spki" ,rust-spki-0.6)
+                       ("rust-zeroize" ,rust-zeroize-1))
+       #:cargo-development-inputs (("rust-const-oid" ,rust-const-oid-0.9)
+                                   ("rust-hex-literal" ,rust-hex-literal-0.3)
+                                   ("rust-tempfile" ,rust-tempfile-3))))))
+
 (define-public rust-pkcs1-0.2
   (package
     (inherit rust-pkcs1-0.7)
-- 
2.41.0