unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#50995] [PATCH] gnu: Add rust-sha3.
@ 2021-10-03 16:38 phodina via Guix-patches via
  2021-10-04  8:16 ` bug#50995: " Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: phodina via Guix-patches via @ 2021-10-03 16:38 UTC (permalink / raw)
  To: 50995

* gnu/packages/crates-io.scm (rust-sha3): New variable.

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 48a05fb8be..d6cdc8a7a2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44713,6 +44713,33 @@ functions core functionality.")
        (("rust-gcc" ,rust-gcc-0.3)
         ("rust-generic-array" ,rust-generic-array-0.8))))))

+(define-public rust-sha3-0.9
+  (package
+    (name "rust-sha3")
+    (version "0.9.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "sha3" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32 "02d85wpvz75a0n7r2da15ikqjwzamhii11qy9gqf6pafgm0rj4gq"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-block-buffer" ,rust-block-buffer-0.9)
+         ("rust-digest" ,rust-digest-0.9)
+         ("rust-keccak" ,rust-keccak-0.1)
+         ("rust-opaque-debug" ,rust-opaque-debug-0.3))
+        #:cargo-development-inputs
+        (("rust-digest" ,rust-digest-0.9)
+         ("rust-hex-literal" ,rust-hex-literal-0.2))))
+    (home-page "https://github.com/RustCrypto/hashes")
+    (synopsis "SHA-3 (Keccak) hash function")
+    (description "This package provides a pure Rust implementation of the SHA-3
+(Keccak) hash function.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-shader-version-0.6
   (package
     (name "rust-shader-version")
--
2.32.0




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#50995: [PATCH] gnu: Add rust-sha3.
  2021-10-03 16:38 [bug#50995] [PATCH] gnu: Add rust-sha3 phodina via Guix-patches via
@ 2021-10-04  8:16 ` Efraim Flashner
  0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2021-10-04  8:16 UTC (permalink / raw)
  To: phodina; +Cc: 50995-done

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

Thanks. Patch pushed.

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-04  8:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-03 16:38 [bug#50995] [PATCH] gnu: Add rust-sha3 phodina via Guix-patches via
2021-10-04  8:16 ` bug#50995: " Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).