gnu: Add rust-chacha20-0.7.

* gnu/packages/crates-crypto.scm (rust-chacha20-0.7): New variable.

Change-Id: Iae3768dd2b82f67aca148d034d0971aa362d13f6
This commit is contained in:
Efraim Flashner 2024-03-18 12:01:41 +02:00
parent 66482d599c
commit 33e7795243
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -1169,6 +1169,32 @@ XChaCha20, XChaCha12 and XChaCha8 stream ciphers, and also optional
(("rust-cipher" ,rust-cipher-0.3)
("rust-hex-literal" ,rust-hex-literal-0.2))))))
(define-public rust-chacha20-0.7
(package
(inherit rust-chacha20-0.9)
(name "rust-chacha20")
(version "0.7.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "chacha20" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1c8h4sp9zh13v8p9arydjcj92xc6j3mccrjc4mizrvq7fzx9717h"))
(modules '((guix build utils)))
(snippet
'(begin
(substitute* "Cargo.toml"
(("version = \">=1, <1.4\"") "version = \"^1\""))))))
(arguments
`(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
("rust-cipher" ,rust-cipher-0.3)
("rust-cpufeatures" ,rust-cpufeatures-0.2)
("rust-rand-core" ,rust-rand-core-0.6)
("rust-zeroize" ,rust-zeroize-1))
#:cargo-development-inputs (("rust-cipher" ,rust-cipher-0.3)
("rust-hex-literal" ,rust-hex-literal-0.2))))))
(define-public rust-chacha20poly1305-0.10
(package
(name "rust-chacha20poly1305")