summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2020-03-08 12:35:50 +0100
committerHartmut Goebel <h.goebel@crazy-compilers.com>2020-05-05 13:20:36 +0200
commitdca13c5d7915c901acca322ecf4289b33a4d5303 (patch)
treee25cfbfdbe0e1d333153d14537516b9f000efd37 /gnu
parent60d19eca1f74b024d8ae982a873b43de10cb057e (diff)
downloadpatches-dca13c5d7915c901acca322ecf4289b33a4d5303.tar
patches-dca13c5d7915c901acca322ecf4289b33a4d5303.tar.gz
gnu: Add rust-sha2-0.8.
* gnu/packages/crates-io.scm (rust-sha2-0.8): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b06baa623f..d80cfba4cc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20889,6 +20889,35 @@ for the serde framework.")
"Assembly implementation of SHA-1 compression function.")
(license license:expat)))
+(define-public rust-sha2-0.8
+ (package
+ (name "rust-sha2")
+ (version "0.8.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "sha2" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1827pplynq0ahxid1xq281kiv56kj2afp7gm97v7gw71sbgll117"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-block-buffer" ,rust-block-buffer-0.7)
+ ("rust-digest" ,rust-digest-0.8)
+ ("rust-fake-simd" ,rust-fake-simd-0.1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-opaque-debug" ,rust-opaque-debug-0.2)
+ ("rust-sha2-asm" ,rust-sha2-asm-0.5))
+ #:cargo-development-inputs
+ (("rust-cc" ,rust-cc-1.0) ;; FIXME for rust-sha2-asm, why again?
+ ("rust-digest" ,rust-digest-0.8)
+ ("rust-hex-literal" ,rust-hex-literal-0.1))))
+ (home-page "https://github.com/RustCrypto/hashes")
+ (synopsis "SHA-2 hash functions")
+ (description "SHA-2 hash functions")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-sha2-asm-0.5
(package
(name "rust-sha2-asm")