guix-commits
[Top][All Lists]
Advanced

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

325/330: gnu: Add rust-chacha20-0.7.


From: guix-commits
Subject: 325/330: gnu: Add rust-chacha20-0.7.
Date: Mon, 18 Mar 2024 07:16:51 -0400 (EDT)

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

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

    gnu: Add rust-chacha20-0.7.
    
    * gnu/packages/crates-crypto.scm (rust-chacha20-0.7): New variable.
    
    Change-Id: Iae3768dd2b82f67aca148d034d0971aa362d13f6
---
 gnu/packages/crates-crypto.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 671be641ec..4af2184d52 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -1169,6 +1169,32 @@ XChaCha20, XChaCha12 and XChaCha8 stream ciphers, and 
also optional
        (("rust-cipher" ,rust-cipher-0.3)
         ("rust-hex-literal" ,rust-hex-literal-0.2))))))
 
+(define-public rust-chacha20-0.7
+  (package
+    (inherit rust-chacha20-0.9)
+    (name "rust-chacha20")
+    (version "0.7.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "chacha20" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1c8h4sp9zh13v8p9arydjcj92xc6j3mccrjc4mizrvq7fzx9717h"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           (substitute* "Cargo.toml"
+             (("version = \">=1, <1.4\"") "version = \"^1\""))))))
+    (arguments
+     `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-cipher" ,rust-cipher-0.3)
+                       ("rust-cpufeatures" ,rust-cpufeatures-0.2)
+                       ("rust-rand-core" ,rust-rand-core-0.6)
+                       ("rust-zeroize" ,rust-zeroize-1))
+       #:cargo-development-inputs (("rust-cipher" ,rust-cipher-0.3)
+                                   ("rust-hex-literal" 
,rust-hex-literal-0.2))))))
+
 (define-public rust-chacha20poly1305-0.10
   (package
     (name "rust-chacha20poly1305")



reply via email to

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