Subject: [PATCH 160/228] gnu: Add rust-ring-compat-0.8.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:08:50 +0100

* gnu/packages/crates-io.scm (rust-ring-compat-0.8): Add variable.

Change-Id: Ide9d1dfc94f4694d060cc06624b16d66941d29e9
---
 gnu/packages/crates-crypto.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 4581bedd33..e2fa124f62 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -4605,6 +4605,40 @@ (define-public rust-ring-0.13
         ;; build dependencies
         ("rust-cc" ,rust-cc-1))))))
 
+(define-public rust-ring-compat-0.8
+  (package
+    (name "rust-ring-compat")
+    (version "0.8.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ring-compat" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1m2vvmbg607f55afx75b9kxbyx6b5wqvhhfv2445z08b2np7pknc"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-aead" ,rust-aead-0.5)
+                       ("rust-digest" ,rust-digest-0.10)
+                       ("rust-ecdsa" ,rust-ecdsa-0.16)
+                       ("rust-ed25519" ,rust-ed25519-2)
+                       ("rust-generic-array" ,rust-generic-array-0.14)
+                       ("rust-p256" ,rust-p256-0.13)
+                       ("rust-p384" ,rust-p384-0.13)
+                       ("rust-pkcs8" ,rust-pkcs8-0.10)
+                       ("rust-rand-core" ,rust-rand-core-0.6)
+                       ("rust-ring" ,rust-ring-0.17)
+                       ("rust-signature" ,rust-signature-2))
+       #:cargo-development-inputs
+       (("rust-digest" ,rust-digest-0.10)
+        ("rust-hex-literal" ,rust-hex-literal-0.4))))
+    (home-page "https://github.com/RustCrypto/ring-compat")
+    (synopsis "RustCrypto trait and ring crypto algorithm compatibility")
+    (description
+     "This package provides compatibility for using @code{RustCrypto}
+traits with cryptographic algorithm implementations from @code{ring}.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-ripemd-0.1
   (package
     (name "rust-ripemd")
-- 
2.41.0