guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#53101] [PATCH 26/41] gnu: rust-rbw: adding rust-pbkdf2


From: Nicolas Graves
Subject: [bug#53101] [PATCH 26/41] gnu: rust-rbw: adding rust-pbkdf2
Date: Fri, 07 Jan 2022 15:19:11 +0100
User-agent: mu4e 1.6.10; emacs 28.0.50

>From 43dc07b34561235468c7f7e14108edb8a4004196 Mon Sep 17 00:00:00 2001
From: Nicolas Graves <ngraves@ngraves.fr>
Date: Fri, 7 Jan 2022 12:57:05 +0100
Subject: [PATCH 27/42] rust-rbw dependencies : adding rust-pbkdf2

---
 gnu/packages/crates-io.scm | 72 ++++++++++++++++++++++++++++++++------
 1 file changed, 61 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6f81e25627..96d02e1132 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -37138,10 +37138,10 @@ (define-public rust-pathdiff-0.1
         (base32
          "0cfg3isnx6mf3wbi7rsg4nmvywby40sbcs589n20fgi09l4p1gx3"))))))
 
-(define-public rust-pbkdf2-0.4
+(define-public rust-pbkdf2-0.10
   (package
     (name "rust-pbkdf2")
-    (version "0.4.0")
+    (version "0.10.0")
     (source
       (origin
         (method url-fetch)
@@ -37150,8 +37150,64 @@ (define-public rust-pbkdf2-0.4
          (string-append name "-" version ".tar.gz"))
         (sha256
          (base32
-          "1g8cm3nwrsydazjc1gjs549hzafgxq8qb49gixrhl3qrd9calvi1"))))
+          "0d3l06x5mg96njxfsksjwl6440alf72qh4rwrpnq4fwmrz1qqqm4"))))
     (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-digest" ,rust-digest-0.10)
+         ("rust-hmac" ,rust-hmac-0.12)
+         ("rust-password-hash" ,rust-password-hash-0.3)
+         ("rust-rayon" ,rust-rayon-1)
+         ("rust-sha-1" ,rust-sha-1-0.10)
+         ("rust-sha2" ,rust-sha2-0.10))))
+    (home-page "https://github.com/RustCrypto/password-hashing";)
+    (synopsis "Generic implementation of PBKDF2")
+    (description "This package contains a collection of password hashing
+algorithms, otherwise known as password-based key derivation functions, written
+in pure Rust.")
+    (license (list license:expat license:asl2.0))))
+
+(define-public rust-pbkdf2-0.9
+  (package
+    (inherit rust-pbkdf2-0.10)
+    (name "rust-pbkdf2")
+    (version "0.9.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "pbkdf2" version))
+        (file-name
+         (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "0fa7j0gdgghk64qlhzdv32yg52p0cfaz5ifhk7i4pfm1wsy98n7h"))))
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-crypto-mac" ,rust-crypto-mac-0.11)
+         ("rust-hmac" ,rust-hmac-0.11)
+         ("rust-password-hash" ,rust-password-hash-0.3)
+         ("rust-rayon" ,rust-rayon-1)
+         ("rust-sha-1" ,rust-sha-1-0.9)
+         ("rust-sha2" ,rust-sha2-0.9))))))
+
+(define-public rust-pbkdf2-0.4
+  (package
+    (inherit rust-pbkdf2-0.10)
+    (name "rust-pbkdf2")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pbkdf2" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1g8cm3nwrsydazjc1gjs549hzafgxq8qb49gixrhl3qrd9calvi1"))))
     (arguments
      `(#:cargo-inputs
        (("rust-base64" ,rust-base64-0.12)
@@ -37165,17 +37221,11 @@ (define-public rust-pbkdf2-0.4
        #:cargo-development-inputs
        (("rust-hmac" ,rust-hmac-0.8)
         ("rust-sha-1" ,rust-sha-1-0.9)
-        ("rust-sha2" ,rust-sha2-0.9))))
-    (home-page "https://github.com/RustCrypto/password-hashing";)
-    (synopsis "Generic implementation of PBKDF2")
-    (description "This package contains a collection of password hashing
-algorithms, otherwise known as password-based key derivation functions, written
-in pure Rust.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-sha2" ,rust-sha2-0.9))))))
 
 (define-public rust-pbkdf2-0.3
   (package
-    (inherit rust-pbkdf2-0.4)
+    (inherit rust-pbkdf2-0.10)
     (name "rust-pbkdf2")
     (version "0.3.0")
     (source
-- 
2.34.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]