diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-03-18 12:01:41 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-07-19 00:43:20 +0300 |
commit | 66482d599c79fbb2664011b53ac1c959a8d0cc99 (patch) | |
tree | 67cb8357e24c816a907ea64e97c97f1511be148f /gnu/packages/crates-crypto.scm | |
parent | 4c7d7351e88744f8bad4bd2704bbc3486206c477 (diff) | |
download | guix-66482d599c79fbb2664011b53ac1c959a8d0cc99.tar.gz guix-66482d599c79fbb2664011b53ac1c959a8d0cc99.zip |
gnu: Add rust-chacha20poly1305-0.8.
* gnu/packages/crates-crypto.scm (rust-chacha20poly1305-0.8): New variable.
Change-Id: I088a430df1eaa6935d02d1f02d0b7b30439e760b
Diffstat (limited to 'gnu/packages/crates-crypto.scm')
-rw-r--r-- | gnu/packages/crates-crypto.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 3c6383b66e..671be641ec 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1225,6 +1225,31 @@ ChaCha8Poly1305 and ChaCha12Poly1305 lightweight variants.") #:cargo-development-inputs (("rust-aead" ,rust-aead-0.4)))))) +(define-public rust-chacha20poly1305-0.8 + (package + (inherit rust-chacha20poly1305-0.10) + (name "rust-chacha20poly1305") + (version "0.8.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "chacha20poly1305" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "18mb6k1w71dqv5q50an4rvp19l6yg8ssmvfrmknjfh2z0az7lm5n")) + (modules '((guix build utils))) + (snippet + '(begin + (substitute* "Cargo.toml" + (("version = \">=1, <1.4\"") "version = \"^1\"")))))) + (arguments + `(#:cargo-inputs (("rust-aead" ,rust-aead-0.4) + ("rust-chacha20" ,rust-chacha20-0.7) + ("rust-cipher" ,rust-cipher-0.3) + ("rust-poly1305" ,rust-poly1305-0.7) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs (("rust-aead" ,rust-aead-0.4)))))) + (define-public rust-cipher-0.4 (package (name "rust-cipher") |