aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2022-01-07 15:16:40 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-01-19 14:04:45 +0100
commitb58c3e138a792b4887ea5a42b354dd2dab1e0667 (patch)
treecddc566c34b2e4c46396d00692428f44cf732c4b /gnu
parentbc8924e3d2a81b37ba906afe7e8074ce1598c7ec (diff)
downloadguix-b58c3e138a792b4887ea5a42b354dd2dab1e0667.tar
guix-b58c3e138a792b4887ea5a42b354dd2dab1e0667.tar.gz
gnu: Add rust-sha-1-0.10.
* gnu/packages/crates-io.scm (rust-sha-1-0.10): New variable. (rust-sha-1-0.9): Inherit from above. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm50
1 files changed, 36 insertions, 14 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0dc1fa8c4c..73049a71a5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50102,20 +50102,46 @@ functionality and without weak references.")
"This package provides a Rust wrapper around the FreeType library.")
(license license:mpl2.0))) ; build.rs is mpl2.0
+(define-public rust-sha-1-0.10
+ (package
+ (name "rust-sha-1")
+ (version "0.10.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "sha-1" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "03zag8zk4qlv40n2yryddapv5yxkam3hdr7n53d8qrzr2gali3q2"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-cfg-if" ,rust-cfg-if-1)
+ ("rust-cpufeatures" ,rust-cpufeatures-0.2)
+ ("rust-digest" ,rust-digest-0.10)
+ ("rust-sha1-asm" ,rust-sha1-asm-0.5))))
+ (home-page "https://github.com/RustCrypto/hashes")
+ (synopsis "SHA-1 hash function")
+ (description "This crate provides a SHA-1 hash function.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-sha-1-0.9
(package
+ (inherit rust-sha-1-0.10)
(name "rust-sha-1")
(version "0.9.1")
(source
- (origin
- (method url-fetch)
- (uri (crate-uri "sha-1" version))
- (file-name
- (string-append name "-" version ".tar.gz"))
- (sha256
- (base32
- "0w37j7swjkbzgi9mf7ihkw0zfik6vl97fs6jdpqs6r68hvm3c2hp"))))
- (build-system cargo-build-system)
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "sha-1" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0w37j7swjkbzgi9mf7ihkw0zfik6vl97fs6jdpqs6r68hvm3c2hp"))))
(arguments
`(#:cargo-inputs
(("rust-block-buffer" ,rust-block-buffer-0.9)
@@ -50127,11 +50153,7 @@ functionality and without weak references.")
("rust-sha1-asm" ,rust-sha1-asm-0.4))
#:cargo-development-inputs
(("rust-digest" ,rust-digest-0.9)
- ("rust-hex-literal" ,rust-hex-literal-0.2))))
- (home-page "https://github.com/RustCrypto/hashes")
- (synopsis "SHA-1 hash function")
- (description "SHA-1 hash function.")
- (license (list license:expat license:asl2.0))))
+ ("rust-hex-literal" ,rust-hex-literal-0.2))))))
(define-public rust-sha-1-0.8
(package