From 507ec15f0b0ef4a3669d4c87901a3f924f35414d Mon Sep 17 00:00:00 2001
From: Wilko Meyer <w@wmeyer.eu>
Date: Mon, 8 Jan 2024 02:52:10 +0100
Subject: [PATCH] gnu: Add rust-crypto-bigint-0.4.

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

Change-Id: I48f1487beef1b13f26738a314fd62183173b5a09
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 37cdc581de..46fb23966d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -17061,6 +17061,34 @@ Provides constant-time, no_std-friendly implementations of modern formulas
 using const generics.")
     (license (list license:asl2.0 license:expat))))
 
+(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
+     `(#: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))
+        #:cargo-development-inputs (("rust-bincode" ,rust-bincode-1)
+                                    ("rust-hex-literal" ,rust-hex-literal-0.3)
+                                    ("rust-num-bigint" ,rust-num-bigint-0.4)
+                                    ("rust-num-traits" ,rust-num-traits-0.2)
+                                    ("rust-proptest" ,rust-proptest-1)
+                                    ("rust-rand-chacha" ,rust-rand-chacha-0.3)
+                                    ("rust-rand-core" ,rust-rand-core-0.6))))))
+
 (define-public rust-crypto-bigint-0.3
   (package
     (inherit rust-crypto-bigint-0.5)