guix-commits
[Top][All Lists]
Advanced

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

326/330: gnu: Add rust-aes-gcm-0.9.


From: guix-commits
Subject: 326/330: gnu: Add rust-aes-gcm-0.9.
Date: Mon, 18 Mar 2024 07:16:51 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit f5c2f097b60738d79a27ab2c6acfd75bb598d950
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 18 12:01:41 2024 +0200

    gnu: Add rust-aes-gcm-0.9.
    
    * gnu/packages/crates-crypto.scm (rust-aes-gcm-0.9): New variable.
    
    Change-Id: Idab2128d71ee39eb690f3c0d70edc06d8356b8d4
---
 gnu/packages/crates-crypto.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 4af2184d52..e6beab8bba 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -319,6 +319,36 @@ Data (AEAD) Cipher with optional architecture-specific 
hardware
 acceleration.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-aes-gcm-0.9
+  (package
+    (inherit rust-aes-gcm-0.10)
+    (name "rust-aes-gcm")
+    (version "0.9.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "aes-gcm" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1xndncn1phjb7pjam63vl0yp7h8jh95m0yxanr1092vx7al8apyz"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin (substitute* "Cargo.toml"
+                  (((string-append ">=([[:digit:]]+(\\.[[:digit:]]+)*),"
+                                   " <([[:digit:]]+(\\.[[:digit:]]+)*)")
+                    _ version _)
+                   (string-append ">=" version)))))))
+    (arguments
+     `(#:cargo-inputs (("rust-aead" ,rust-aead-0.4)
+                       ("rust-aes" ,rust-aes-0.7)
+                       ("rust-cipher" ,rust-cipher-0.3)
+                       ("rust-ctr" ,rust-ctr-0.8)
+                       ("rust-ghash" ,rust-ghash-0.4)
+                       ("rust-subtle" ,rust-subtle-2)
+                       ("rust-zeroize" ,rust-zeroize-1))
+       #:cargo-development-inputs (("rust-aead" ,rust-aead-0.4)
+                                   ("rust-hex-literal" 
,rust-hex-literal-0.3))))))
+
 (define-public rust-aes-gcm-0.8
   (package
     (inherit rust-aes-gcm-0.10)



reply via email to

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