diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-03-31 14:58:04 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-07-19 00:45:58 +0300 |
commit | a48fc00ee1980fbf64fec3af75443dd5dacb8e29 (patch) | |
tree | e9420e72b912feb71fcd878ac87a294fadd308bb /gnu/packages/crates-crypto.scm | |
parent | 2252cd45f51f7c6cfa9cdeda1da5a0a488c1f45d (diff) | |
download | guix-a48fc00ee1980fbf64fec3af75443dd5dacb8e29.tar.gz guix-a48fc00ee1980fbf64fec3af75443dd5dacb8e29.zip |
gnu: Add rust-sha256-1.
* gnu/packages/crates-crypto.scm (rust-sha256-1): New variable.
Change-Id: Ia78b0758ad3b422af67d6db9e5a9ea738c17e12b
Diffstat (limited to 'gnu/packages/crates-crypto.scm')
-rw-r--r-- | gnu/packages/crates-crypto.scm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 71b98df7ba..1aadb2db65 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -5755,6 +5755,32 @@ functions core functionality.") (sha256 (base32 "0y4n8r4362y2fa6p2j0dgny4zfi194gdf01l6j850n9vf8ha3kwj")))))) +(define-public rust-sha256-1 + (package + (name "rust-sha256") + (version "1.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "sha256" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1c35j1z4inpz7fwa6vy0xf3arffz5mykyj8nlc50g8sgj5m8y9qq")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-async-trait" ,rust-async-trait-0.1) + ("rust-bytes" ,rust-bytes-1) + ("rust-hex" ,rust-hex-0.4) + ("rust-openssl" ,rust-openssl-0.10) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-tokio" ,rust-tokio-1)) + #:cargo-development-inputs (("rust-tokio" ,rust-tokio-1) + ("rust-tokio-test" ,rust-tokio-test-0.4)))) + (home-page "https://github.com/baoyachi/sha256-rs") + (synopsis "Sha256 crypto digest") + (description "This package provides the sha256 crypto digest in Rust.") + (license (list license:expat license:asl2.0)))) + (define-public rust-sha3-0.10 (package (name "rust-sha3") |