summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorVÖRÖSKŐI András <voroskoi@gmail.com>2023-11-11 16:35:10 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:56:26 +0200
commit200540f249d9a6a9fe2c83072a6559f5ac3c4afa (patch)
treef79a39ddcf0465cc055ecda8f7438a08da8a90f9 /gnu/packages
parent4ddd4020e55636f92fd3b6f974bdea93d51fcb51 (diff)
downloadguix-200540f249d9a6a9fe2c83072a6559f5ac3c4afa.tar.gz
gnu: Add rust-argon2-0.5.
* gnu/packages/crates-io.scm (rust-argon2-0.5): New variable.

Change-Id: I15970bb5338c19f524f82f39ec53a7b91c71bc3e
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1dc21417cb..5c5900305f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4235,6 +4235,36 @@ the pointer type is parameterizable.")
 too long errors.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-argon2-0.5
+  (package
+    (name "rust-argon2")
+    (version "0.5.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "argon2" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1y820hkza66lfliaxg49zskz7agj8wf7aak528livg261an4rfhp"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-base64ct" ,rust-base64ct-1)
+        ("rust-blake2" ,rust-blake2-0.10)
+        ("rust-cpufeatures" ,rust-cpufeatures-0.2)
+        ("rust-password-hash" ,rust-password-hash-0.5)
+        ("rust-zeroize" ,rust-zeroize-1))
+       #:cargo-development-inputs
+       (("rust-hex-literal" ,rust-hex-literal-0.4)
+        ("rust-password-hash" ,rust-password-hash-0.5))))
+    (home-page
+     "https://github.com/RustCrypto/password-hashes/tree/master/argon2")
+    (synopsis "Rust argon2 library")
+    (description
+     "Pure Rust implementation of the Argon2 password hashing function with support
+for the Argon2d, Argon2i, and Argon2id algorithmic variants.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-ariadne-0.1
   (package
     (name "rust-ariadne")