Subject: [PATCH 036/156] gnu: Add rust-curve25519-dalek-4.

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

* gnu/packages/crates-io.scm (rust-curve25519-dalek-4): New variable.

Change-Id: I24a6af496a23885740f2a3b68c8af838bfba3c44
---
 gnu/packages/crates-io.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0207fc18793..17075c62b8e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -18211,6 +18211,42 @@ (define-public rust-curve25519-dalek-derive-0.1
     (synopsis "curve25519-dalek Derives")
     (description "curve25519-dalek Derives")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-curve25519-dalek-4
+  (package
+    (name "rust-curve25519-dalek")
+    (version "4.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "curve25519-dalek" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0p7ns5917k6369gajrsbfj24llc5zfm635yh3abla7sb5rm8r6z8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-cpufeatures" ,rust-cpufeatures-0.2)
+                       ("rust-curve25519-dalek-derive" ,rust-curve25519-dalek-derive-0.1)
+                       ("rust-digest" ,rust-digest-0.10)
+                       ("rust-ff" ,rust-ff-0.13)
+                       ("rust-fiat-crypto" ,rust-fiat-crypto-0.2)
+                       ("rust-group" ,rust-group-0.13)
+                       ("rust-platforms" ,rust-platforms-3)
+                       ("rust-rand-core" ,rust-rand-core-0.6)
+                       ("rust-rustc-version" ,rust-rustc-version-0.4)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-subtle" ,rust-subtle-2)
+                       ("rust-zeroize" ,rust-zeroize-1))))
+    (home-page "https://github.com/dalek-cryptography/curve25519-dalek")
+    (synopsis
+     "A pure-Rust implementation of group operations on ristretto255 and Curve25519")
+    (description
+     "This package provides a pure-Rust implementation of group operations on
+ristretto255 and Curve25519")
+    (license license:bsd-3)))
+
 (define-public rust-curve25519-dalek-ng-4
   (package
     (name "rust-curve25519-dalek-ng")
-- 
2.41.0