diff mbox series

[bug#74233,PATCHv2,rust-team,02/40] gnu: Add rust-rust-argon2-2.0.

Message ID 7fc9380a6c8d70d7fb620ba032336021a2360657.1731018145.git.goodoldpaul@autistici.org
State New
Headers show
Series [bug#74233,PATCHv2,rust-team,01/40] gnu: Add rust-search-provider-0.8. | expand

Commit Message

Giacomo Leidi Nov. 7, 2024, 10:21 p.m. UTC
* gnu/packages/crates-crypto.scm (rust-rust-argon2-2.0): New variable;
(rust-rust-argon2-0.8): inherit from rust-rust-argon2-2.0.

Change-Id: I9636b29a24d317ddeb2b4284a0bdbe382e764a14
---
 gnu/packages/crates-crypto.scm | 38 +++++++++++++++++++++++++++-------
 1 file changed, 30 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index c8ead45efe..2b7a6be465 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -5138,26 +5138,27 @@  (define-public rust-rsa-0.5
          ("rust-sha2" ,rust-sha2-0.9)
          ("rust-sha3" ,rust-sha3-0.9))))))
 
-(define-public rust-rust-argon2-0.8
+(define-public rust-rust-argon2-2.0
   (package
     (name "rust-rust-argon2")
-    (version "0.8.3")
+    (version "2.0.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "rust-argon2" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1yvqkv04fqk3cbvyasibr4bqbxa6mij8jdvibakwlcsbjh6q462b"))))
+        (base32 "0sp42kn06wm1mglrfxnv6js0fxjirgdjhhsakrv0xbmk44c9fw8y"))))
     (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
-       (("rust-base64" ,rust-base64-0.13)
-        ("rust-blake2b-simd" ,rust-blake2b-simd-0.5)
-        ("rust-constant-time-eq" ,rust-constant-time-eq-0.1)
-        ("rust-crossbeam-utils" ,rust-crossbeam-utils-0.8)
-        ("rust-serde" ,rust-serde-1))))
+       (("rust-base64" ,rust-base64-0.21)
+        ("rust-blake2b-simd" ,rust-blake2b-simd-1)
+        ("rust-constant-time-eq" ,rust-constant-time-eq-0.3)
+        ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs
+       (("rust-hex" ,rust-hex-0.4))))
     (home-page "https://github.com/sru-systems/rust-argon2")
     (synopsis "Argon2 password hashing function in Rust")
     (description
@@ -5165,6 +5166,27 @@  (define-public rust-rust-argon2-0.8
 hashing function.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-rust-argon2-0.8
+  (package
+    (inherit rust-rust-argon2-2.0)
+    (name "rust-rust-argon2")
+    (version "0.8.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rust-argon2" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1yvqkv04fqk3cbvyasibr4bqbxa6mij8jdvibakwlcsbjh6q462b"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-base64" ,rust-base64-0.13)
+        ("rust-blake2b-simd" ,rust-blake2b-simd-0.5)
+        ("rust-constant-time-eq" ,rust-constant-time-eq-0.1)
+        ("rust-crossbeam-utils" ,rust-crossbeam-utils-0.8)
+        ("rust-serde" ,rust-serde-1))))))
+
 (define-public rust-rust-argon2-0.7
   (package
     (inherit rust-rust-argon2-0.8)