guix-commits
[Top][All Lists]
Advanced

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

324/330: gnu: Add rust-chacha20poly1305-0.8.


From: guix-commits
Subject: 324/330: gnu: Add rust-chacha20poly1305-0.8.
Date: Mon, 18 Mar 2024 07:16:50 -0400 (EDT)

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

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

    gnu: Add rust-chacha20poly1305-0.8.
    
    * gnu/packages/crates-crypto.scm (rust-chacha20poly1305-0.8): New variable.
    
    Change-Id: I088a430df1eaa6935d02d1f02d0b7b30439e760b
---
 gnu/packages/crates-crypto.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 3c6383b66e..671be641ec 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -1225,6 +1225,31 @@ ChaCha8Poly1305 and ChaCha12Poly1305 lightweight 
variants.")
        #:cargo-development-inputs
        (("rust-aead" ,rust-aead-0.4))))))
 
+(define-public rust-chacha20poly1305-0.8
+  (package
+    (inherit rust-chacha20poly1305-0.10)
+    (name "rust-chacha20poly1305")
+    (version "0.8.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "chacha20poly1305" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "18mb6k1w71dqv5q50an4rvp19l6yg8ssmvfrmknjfh2z0az7lm5n"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           (substitute* "Cargo.toml"
+             (("version = \">=1, <1.4\"") "version = \"^1\""))))))
+    (arguments
+     `(#:cargo-inputs (("rust-aead" ,rust-aead-0.4)
+                       ("rust-chacha20" ,rust-chacha20-0.7)
+                       ("rust-cipher" ,rust-cipher-0.3)
+                       ("rust-poly1305" ,rust-poly1305-0.7)
+                       ("rust-zeroize" ,rust-zeroize-1))
+       #:cargo-development-inputs (("rust-aead" ,rust-aead-0.4))))))
+
 (define-public rust-cipher-0.4
   (package
     (name "rust-cipher")



reply via email to

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