diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-01-21 20:13:13 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:58:04 +0200 |
commit | 5115f8e365ab6bf13c4865f23ed53caf729af2ba (patch) | |
tree | becad78b69083c7ab7dbb3976c69e8761ee6075f /gnu/packages | |
parent | 76a4ca82dd061004a703011928262036771e115e (diff) | |
download | guix-5115f8e365ab6bf13c4865f23ed53caf729af2ba.tar.gz |
gnu: rust-x25519-dalek: Move to (gnu packages crates-crypto).
* gnu/packages/crates-io.scm (rust-x25519-dalek-1, rust-x25519-dalek-ng-1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: Ic8d845e4a2b14e9478be86c20670348d1001181d
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/crates-crypto.scm | 60 | ||||
-rw-r--r-- | gnu/packages/crates-io.scm | 60 |
2 files changed, 60 insertions, 60 deletions
diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 91f3ae2910..4bff4f9dfe 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -5886,3 +5886,63 @@ One-Time Password library.") #:cargo-inputs (("rust-generic-array" ,rust-generic-array-0.12) ("rust-subtle" ,rust-subtle-2)))))) + +(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")) + (modules '((guix build utils))) + (snippet + '(begin + (substitute* "Cargo.toml" + (("version = \"=1.3\"") "version = \"^1.3\"")))))) + (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-x25519-dalek-ng-1 + (package + (name "rust-x25519-dalek-ng") + (version "1.1.1") + (source (origin + (method url-fetch) + (uri (crate-uri "x25519-dalek-ng" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "09n35vgrryjy0m6ascfaykc8s0i517rzgj64qdq2jrlri7g78w5z")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-curve25519-dalek-ng" ,rust-curve25519-dalek-ng-4) + ("rust-rand" ,rust-rand-0.8) + ("rust-rand-core" ,rust-rand-core-0.6) + ("rust-serde" ,rust-serde-1) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-bincode" ,rust-bincode-1) + ("rust-criterion" ,rust-criterion-0.3)))) + (home-page "https://dalek.rs/") + (synopsis "Fork of x25519-dalek") + (description "This package provides a fork x25519-dalek, with an updated +rand_core.") + (license license:bsd-3))) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 506f1f1d75..9c4ec7640b 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -79135,66 +79135,6 @@ 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")) - (modules '((guix build utils))) - (snippet - '(begin - (substitute* "Cargo.toml" - (("version = \"=1.3\"") "version = \"^1.3\"")))))) - (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-x25519-dalek-ng-1 - (package - (name "rust-x25519-dalek-ng") - (version "1.1.1") - (source (origin - (method url-fetch) - (uri (crate-uri "x25519-dalek-ng" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "09n35vgrryjy0m6ascfaykc8s0i517rzgj64qdq2jrlri7g78w5z")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-curve25519-dalek-ng" ,rust-curve25519-dalek-ng-4) - ("rust-rand" ,rust-rand-0.8) - ("rust-rand-core" ,rust-rand-core-0.6) - ("rust-serde" ,rust-serde-1) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-bincode" ,rust-bincode-1) - ("rust-criterion" ,rust-criterion-0.3)))) - (home-page "https://dalek.rs/") - (synopsis "Fork of x25519-dalek") - (description "This package provides a fork x25519-dalek, with an updated -rand_core.") - (license license:bsd-3))) - (define-public rust-x509-parser-0.15 (package (name "rust-x509-parser") |