Subject: [bug#68312] [PATCH 033/156] gnu: Add rust-crypto-bigint-0.4.

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

* gnu/packages/crates-io.scm (rust-crypto-bigint-0.4): New variable.
(rust-crypto-bigint-0.3): Inherit from rust-crypto-bigint-0.4.

Change-Id: I48f1487beef1b13f26738a314fd62183173b5a09
---
 gnu/packages/crates-io.scm | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 515fd18e3b3..66f96a0f3f6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -17204,10 +17204,32 @@ (define-public rust-crypto-bigint-0.5
 using const generics.")
     (license (list license:asl2.0 license:expat))))
 
-(define-public rust-crypto-bigint-0.3
+(define-public rust-crypto-bigint-0.4
   (package
     (inherit rust-crypto-bigint-0.5)
     (name "rust-crypto-bigint")
+    (version "0.4.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "crypto-bigint" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1vqprgj0aj1340w186zyspi58397ih78jsc0iydvhs6zrlilnazg"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-der" ,rust-der-0.6)
+                       ("rust-generic-array" ,rust-generic-array-0.14)
+                       ("rust-rand-core" ,rust-rand-core-0.6)
+                       ("rust-rlp" ,rust-rlp-0.5)
+                       ("rust-serdect" ,rust-serdect-0.1)
+                       ("rust-subtle" ,rust-subtle-2)
+                       ("rust-zeroize" ,rust-zeroize-1))))))
+
+(define-public rust-crypto-bigint-0.3
+  (package
+    (inherit rust-crypto-bigint-0.4)
+    (name "rust-crypto-bigint")
     (version "0.3.2")
     (source
      (origin
-- 
2.41.0