guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/134: gnu: Add rust-x25519-dalek-1.


From: guix-commits
Subject: 05/134: gnu: Add rust-x25519-dalek-1.
Date: Sat, 22 Jan 2022 07:38:14 -0500 (EST)

ngz pushed a commit to branch master
in repository guix.

commit 3d4eebb54d6e5d6f22af7ca044086304c7ffbae8
Author: Aleksandr Vityazev <avityazev@posteo.org>
AuthorDate: Mon Jan 17 13:08:58 2022 +0000

    gnu: Add rust-x25519-dalek-1.
    
    * gnu/packages/crates-io.scm (rust-x25519-dalek-1): New variable.
    
    Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4f297bbaf9..82fdd3f796 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66033,6 +66033,33 @@ non-cryptographic hashing algorithm and random number 
generator.")
      "This package provides a collection of utility functions.")
     (license license:expat)))
 
+(define-public rust-x25519-dalek-1
+  (package
+    (name "rust-x25519-dalek")
+    (version "1.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "x25519-dalek" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0xz0m1pczss9r25d1r52420dl2picdypbcn5ycmlwssp9awvd4i3"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-curve25519-dalek" ,rust-curve25519-dalek-3)
+        ("rust-rand-core" ,rust-rand-core-0.5)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-zeroize" ,rust-zeroize-1))))
+    (home-page "https://dalek.rs/";)
+    (synopsis "X25519 elliptic curve Diffie-Hellman key exchange")
+    (description
+     "This crate provides a pure-Rust implementation of x25519 elliptic curve
+Diffie-Hellman key exchange, with curve operations provided by
+@code{curve25519-dalek}.")
+    (license license:bsd-3)))
+
 (define-public rust-x86-0.33
   (package
     (name "rust-x86")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]