Subject: [bug#70147] [PATCH 02/42] gnu: Add rust-age-0.10.

From: Wilko Meyer <[email-masked]>
Date: Tue, 2 Apr 2024 18:22:19 +0200

* gnu/packages/crates-crypto.scm (rust-age-0.10): New variable.

Change-Id: If91e84c2b149e4a0d1b3af7e22e26873ebedf985
---
 gnu/packages/crates-crypto.scm | 55 ++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 9111693bf7..e2f8adbbbd 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -587,6 +587,61 @@ (define-public rust-age-core-0.10
 crates.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-age-0.10
+  (package
+    (name "rust-age")
+    (version "0.10.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "age" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0zc1m1lm64bx17bvviy5c1p77vjas395b0bsglnml6crn7bzgvpd"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-aes" ,rust-aes-0.8)
+                       ("rust-aes-gcm" ,rust-aes-gcm-0.10)
+                       ("rust-age-core" ,rust-age-core-0.10)
+                       ("rust-base64" ,rust-base64-0.21)
+                       ("rust-bcrypt-pbkdf" ,rust-bcrypt-pbkdf-0.10)
+                       ("rust-bech32" ,rust-bech32-0.9)
+                       ("rust-cbc" ,rust-cbc-0.1)
+                       ("rust-chacha20poly1305" ,rust-chacha20poly1305-0.10)
+                       ("rust-cipher" ,rust-cipher-0.4)
+                       ("rust-console" ,rust-console-0.15)
+                       ("rust-cookie-factory" ,rust-cookie-factory-0.3)
+                       ("rust-ctr" ,rust-ctr-0.9)
+                       ("rust-curve25519-dalek" ,rust-curve25519-dalek-4)
+                       ("rust-futures" ,rust-futures-0.3)
+                       ("rust-hmac" ,rust-hmac-0.12)
+                       ("rust-i18n-embed" ,rust-i18n-embed-0.14)
+                       ("rust-i18n-embed-fl" ,rust-i18n-embed-fl-0.7)
+                       ("rust-is-terminal" ,rust-is-terminal-0.4)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-memchr" ,rust-memchr-2)
+                       ("rust-nom" ,rust-nom-7)
+                       ("rust-num-traits" ,rust-num-traits-0.2)
+                       ("rust-pin-project" ,rust-pin-project-1)
+                       ("rust-pinentry" ,rust-pinentry-0.5)
+                       ("rust-rand" ,rust-rand-0.8)
+                       ("rust-rpassword" ,rust-rpassword-7)
+                       ("rust-rsa" ,rust-rsa-0.9)
+                       ("rust-rust-embed" ,rust-rust-embed-8)
+                       ("rust-scrypt" ,rust-scrypt-0.11)
+                       ("rust-sha2" ,rust-sha2-0.10)
+                       ("rust-subtle" ,rust-subtle-2)
+                       ("rust-web-sys" ,rust-web-sys-0.3)
+                       ("rust-which" ,rust-which-4)
+                       ("rust-wsl" ,rust-wsl-0.1)
+                       ("rust-x25519-dalek" ,rust-x25519-dalek-2)
+                       ("rust-zeroize" ,rust-zeroize-1))))
+    (home-page "https://github.com/str4d/rage")
+    (synopsis "A simple, secure, and modern encryption library")
+    (description "Age is a simple, secure, and modern encryption library.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-argon2-0.5
   (package
     (name "rust-argon2")
-- 
2.41.0