diff options
author | Giacomo Leidi <goodoldpaul@autistici.org> | 2024-11-07 23:21:47 +0100 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-11-28 11:05:12 +0200 |
commit | 5d4c985a93137edb920a2094881bcca2ccefb261 (patch) | |
tree | be5520b9cf6b00896c0b5a850a6c718b3a8544e4 /gnu/packages/crates-crypto.scm | |
parent | 54ba82b23ef899a5cfcbaf4416ac39d10df29ce1 (diff) | |
download | guix-5d4c985a93137edb920a2094881bcca2ccefb261.tar.gz guix-5d4c985a93137edb920a2094881bcca2ccefb261.zip |
gnu: Add rust-rust-argon2-2.
* gnu/packages/crates-crypto.scm (rust-rust-argon2-2): New variable.
(rust-rust-argon2-0.8): Inherit from rust-rust-argon2-2.
Change-Id: I9636b29a24d317ddeb2b4284a0bdbe382e764a14
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/crates-crypto.scm')
-rw-r--r-- | gnu/packages/crates-crypto.scm | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index c8ead45efe..150861fc4b 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -5138,8 +5138,36 @@ traits with cryptographic algorithm implementations from @code{ring}.") ("rust-sha2" ,rust-sha2-0.9) ("rust-sha3" ,rust-sha3-0.9)))))) +(define-public rust-rust-argon2-2 + (package + (name "rust-rust-argon2") + (version "2.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "rust-argon2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1s66kgbvnv5vaq4vlglx587bq93c662whrniz6ycpjb03m9li64x")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-base64" ,rust-base64-0.21) + ("rust-blake2b-simd" ,rust-blake2b-simd-1) + ("rust-constant-time-eq" ,rust-constant-time-eq-0.3) + ("rust-serde" ,rust-serde-1)) + #:cargo-development-inputs + (("rust-hex" ,rust-hex-0.4)))) + (home-page "https://github.com/sru-systems/rust-argon2") + (synopsis "Argon2 password hashing function in Rust") + (description + "This package provides a Rust implementation of the Argon2 password +hashing function.") + (license (list license:expat license:asl2.0)))) + (define-public rust-rust-argon2-0.8 (package + (inherit rust-rust-argon2-2) (name "rust-rust-argon2") (version "0.8.3") (source @@ -5149,7 +5177,6 @@ traits with cryptographic algorithm implementations from @code{ring}.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1yvqkv04fqk3cbvyasibr4bqbxa6mij8jdvibakwlcsbjh6q462b")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs @@ -5157,13 +5184,7 @@ traits with cryptographic algorithm implementations from @code{ring}.") ("rust-blake2b-simd" ,rust-blake2b-simd-0.5) ("rust-constant-time-eq" ,rust-constant-time-eq-0.1) ("rust-crossbeam-utils" ,rust-crossbeam-utils-0.8) - ("rust-serde" ,rust-serde-1)))) - (home-page "https://github.com/sru-systems/rust-argon2") - (synopsis "Argon2 password hashing function in Rust") - (description - "This package provides a Rust implementation of the Argon2 password -hashing function.") - (license (list license:expat license:asl2.0)))) + ("rust-serde" ,rust-serde-1)))))) (define-public rust-rust-argon2-0.7 (package |