Subject: [bug#53098] [PATCH 23/41] gnu: rust-rbw: adding rust-sha-1-0.10

From: Nicolas Graves <[email-masked]>
Date: Fri, 07 Jan 2022 15:16:40 +0100

>From 3a62e64aa7a0e745f4110c62dd84701face22b84 Mon Sep 17 00:00:00 2001
From: Nicolas Graves <[email-masked]>
Date: Fri, 7 Jan 2022 12:38:17 +0100
Subject: [PATCH 24/42] rust-rbw dependencies : adding rust-sha-1-0.10

---
 gnu/packages/crates-io.scm | 41 +++++++++++++++++++++++++++++---------
 1 file changed, 32 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e6fc76e929..232c236d55 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -49780,10 +49780,10 @@ (define-public rust-servo-freetype-sys-4
      "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.9
+(define-public rust-sha-1-0.10
   (package
     (name "rust-sha-1")
-    (version "0.9.1")
+    (version "0.10.0")
     (source
       (origin
         (method url-fetch)
@@ -49792,8 +49792,35 @@ (define-public rust-sha-1-0.9
          (string-append name "-" version ".tar.gz"))
         (sha256
          (base32
-          "0w37j7swjkbzgi9mf7ihkw0zfik6vl97fs6jdpqs6r68hvm3c2hp"))))
+          "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 "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"))))
     (arguments
      `(#:cargo-inputs
        (("rust-block-buffer" ,rust-block-buffer-0.9)
@@ -49805,15 +49832,11 @@ (define-public rust-sha-1-0.9
         ("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
-    (inherit rust-sha-1-0.9)
+    (inherit rust-sha-1-0.10)
     (name "rust-sha-1")
     (version "0.8.2")
     (source
-- 
2.34.0