guix-commits
[Top][All Lists]
Advanced

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

03/31: gnu: Add rust-sha1collisiondetection-0.3.


From: guix-commits
Subject: 03/31: gnu: Add rust-sha1collisiondetection-0.3.
Date: Sun, 31 Mar 2024 14:27:50 -0400 (EDT)

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

commit 2950ccb217548892164360af7374fe0093fcec45
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Mar 31 16:52:32 2024 +0300

    gnu: Add rust-sha1collisiondetection-0.3.
    
    * gnu/packages/crates-crypto.scm (rust-sha1collisiondetection-0.3): New
    variable.
    (rust-sha1collisiondetection-0.2): Inherit from
    rust-sha1collisiondetection-0.3.
    
    Change-Id: I782dc66839b573959a3e172e28e3fa78cd8276df
---
 gnu/packages/crates-crypto.scm | 44 ++++++++++++++++++++++++++++++++----------
 1 file changed, 34 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 190d2f7f39..15c777f06a 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -5613,8 +5613,41 @@ for data that potentially contains secrets (e.g. 
cryptographic keys).")
 SHA1 for Rust.")
     (license license:bsd-3)))
 
+(define-public rust-sha1collisiondetection-0.3
+  (package
+    (name "rust-sha1collisiondetection")
+    (version "0.3.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "sha1collisiondetection" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0jwnwrk1x78v9r16jnac2s4v1m2f5a19khwkx1vjh0d6whhn8q0z"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-clap" ,rust-clap-4)
+                       ("rust-clap" ,rust-clap-4)
+                       ("rust-clap-mangen" ,rust-clap-mangen-0.2)
+                       ("rust-clap-mangen" ,rust-clap-mangen-0.2)
+                       ("rust-const-oid" ,rust-const-oid-0.9)
+                       ("rust-digest" ,rust-digest-0.10)
+                       ("rust-generic-array" ,rust-generic-array-0.12))
+       #:cargo-development-inputs (("rust-getrandom" ,rust-getrandom-0.2)
+                                   ("rust-hex-literal" ,rust-hex-literal-0.4)
+                                   ("rust-sha1" ,rust-sha1-0.10))))
+    (home-page "https://gitlab.com/sequoia-pgp/sha1collisiondetection";)
+    (synopsis "SHA-1 hash function with collision detection and mitigation")
+    (description
+      "This package implementation of the SHA-1 cryptographic hash algorithm.
+
+This is a port of Marc Stevens' sha1collisiondetection algorithm to Rust.  The
+code is translated from C to Rust using c2rust.")
+    (license license:expat)))
+
 (define-public rust-sha1collisiondetection-0.2
   (package
+    (inherit rust-sha1collisiondetection-0.3)
     (name "rust-sha1collisiondetection")
     (version "0.2.3")
     (source
@@ -5625,7 +5658,6 @@ SHA1 for Rust.")
           (string-append name "-" version ".tar.gz"))
         (sha256
           (base32 "10nh7s3d02136kkz93pxyfv628ls5xz8ndg27pkb6na0ghccz9np"))))
-    (build-system cargo-build-system)
     (arguments
       `(#:skip-build? #t
         #:cargo-inputs
@@ -5633,15 +5665,7 @@ SHA1 for Rust.")
          ("rust-generic-array" ,rust-generic-array-0.14)
          ("rust-libc" ,rust-libc-0.2)
          ("rust-sha-1" ,rust-sha-1-0.9)
-         ("rust-structopt" ,rust-structopt-0.3))))
-    (home-page "https://docs.rs/sha1collisiondetection";)
-    (synopsis "SHA-1 hash function with collision detection and mitigation")
-    (description
-      "This package implementation of the SHA-1 cryptographic hash algorithm.
-
-This is a port of Marc Stevens' sha1collisiondetection algorithm to Rust.  The
-code is translated from C to Rust using c2rust.")
-    (license license:expat)))
+         ("rust-structopt" ,rust-structopt-0.3))))))
 
 (define-public rust-sha2-0.10
   (package



reply via email to

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