unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#66937] [PATCH] gnu: Add rust-blake2-0.10.
@ 2023-11-04 21:05 VÖRÖSKŐI András
  2023-11-05 10:30 ` bug#66937: " Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: VÖRÖSKŐI András @ 2023-11-04 21:05 UTC (permalink / raw)
  To: 66937; +Cc: VÖRÖSKŐI András, Efraim Flashner

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

Change-Id: I8cb30f21a62c563c9c7c559765d9672aed6680ad
---
 gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++------------
 1 file changed, 25 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fc26147157..9c4cc02fc8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -8645,8 +8645,30 @@ (define-public rust-bitvec-0.19
         ("rust-serde-test" ,rust-serde-test-1)
         ("rust-static-assertions" ,rust-static-assertions-1))))))
 
+(define-public rust-blake2-0.10
+  (package
+    (name "rust-blake2")
+    (version "0.10.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "blake2" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1zlf7w7gql12v61d9jcbbswa3dw8qxsjglylsiljp9f9b3a2ll26"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-digest" ,rust-digest-0.10)
+        ("rust-hex-literal" ,rust-hex-literal-0.2))))
+    (home-page "https://github.com/RustCrypto/hashes")
+    (synopsis "BLAKE2 hash functions")
+    (description "This package provides BLAKE2 hash functions in Rust.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-blake2-0.9
   (package
+    (inherit rust-blake2-0.10)
     (name "rust-blake2")
     (version "0.9.2")
     (source
@@ -8656,7 +8678,6 @@ (define-public rust-blake2-0.9
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0x7i67c0hn3bzcwny08rgjrrnarqnqw10qpmh2blbx9hd78kfkha"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-crypto-mac" ,rust-crypto-mac-0.8)
@@ -8665,14 +8686,11 @@ (define-public rust-blake2-0.9
        #:cargo-development-inputs
        (("rust-crypto-mac" ,rust-crypto-mac-0.8)
         ("rust-digest" ,rust-digest-0.9)
-        ("rust-hex-literal" ,rust-hex-literal-0.2))))
-    (home-page "https://github.com/RustCrypto/hashes")
-    (synopsis "BLAKE2 hash functions")
-    (description "This package provides BLAKE2 hash functions in Rust.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-hex-literal" ,rust-hex-literal-0.2))))))
 
 (define-public rust-blake2-0.8
   (package
+    (inherit rust-blake2-0.10)
     (name "rust-blake2")
     (version "0.8.1")
     (source
@@ -8684,7 +8702,6 @@ (define-public rust-blake2-0.8
        (sha256
         (base32
          "0c4k11j04kqhkci6i9b7lz6p13kpcv228pdqixgrawvavaq0gjwl"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-byte-tools" ,rust-byte-tools-0.3)
@@ -8694,11 +8711,7 @@ (define-public rust-blake2-0.8
        #:cargo-development-inputs
        (("rust-crypto-mac" ,rust-crypto-mac-0.7)
         ("rust-digest" ,rust-digest-0.8)
-        ("rust-hex-literal" ,rust-hex-literal-0.1))))
-    (home-page "https://github.com/RustCrypto/hashes")
-    (synopsis "BLAKE2 hash functions")
-    (description "This package provides BLAKE2 hash functions in Rust.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-hex-literal" ,rust-hex-literal-0.1))))))
 
 (define-public rust-blake2b-simd-1
   (package

base-commit: e16d152463d04792af086ec4505d8a0a41b8206b
-- 
2.41.0





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

* bug#66937: [PATCH] gnu: Add rust-blake2-0.10.
  2023-11-04 21:05 [bug#66937] [PATCH] gnu: Add rust-blake2-0.10 VÖRÖSKŐI András
@ 2023-11-05 10:30 ` Efraim Flashner
  0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2023-11-05 10:30 UTC (permalink / raw)
  To: VÖRÖSKŐI András; +Cc: 66937-done

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

Thanks.  I had to adjust the cargo inputs to duplicate rust-digest-0.10
in cargo-development-inputs and I moved rust-hex-literal-0.2 to
cargo-development-inputs.

Patch pushed!

On Sat, Nov 04, 2023 at 10:05:27PM +0100, VÖRÖSKŐI András wrote:
> * gnu/packages/crates-io.scm (rust-blake2-0.10): New variable.
> 
> Change-Id: I8cb30f21a62c563c9c7c559765d9672aed6680ad
> ---
>  gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++------------
>  1 file changed, 25 insertions(+), 12 deletions(-)
> 
> diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
> index fc26147157..9c4cc02fc8 100644
> --- a/gnu/packages/crates-io.scm
> +++ b/gnu/packages/crates-io.scm
> @@ -8645,8 +8645,30 @@ (define-public rust-bitvec-0.19
>          ("rust-serde-test" ,rust-serde-test-1)
>          ("rust-static-assertions" ,rust-static-assertions-1))))))
>  
> +(define-public rust-blake2-0.10
> +  (package
> +    (name "rust-blake2")
> +    (version "0.10.6")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (crate-uri "blake2" version))
> +       (file-name (string-append name "-" version ".tar.gz"))
> +       (sha256
> +        (base32 "1zlf7w7gql12v61d9jcbbswa3dw8qxsjglylsiljp9f9b3a2ll26"))))
> +    (build-system cargo-build-system)
> +    (arguments
> +     `(#:cargo-inputs
> +       (("rust-digest" ,rust-digest-0.10)
> +        ("rust-hex-literal" ,rust-hex-literal-0.2))))
> +    (home-page "https://github.com/RustCrypto/hashes")
> +    (synopsis "BLAKE2 hash functions")
> +    (description "This package provides BLAKE2 hash functions in Rust.")
> +    (license (list license:expat license:asl2.0))))
> +
>  (define-public rust-blake2-0.9
>    (package
> +    (inherit rust-blake2-0.10)
>      (name "rust-blake2")
>      (version "0.9.2")
>      (source
> @@ -8656,7 +8678,6 @@ (define-public rust-blake2-0.9
>         (file-name (string-append name "-" version ".tar.gz"))
>         (sha256
>          (base32 "0x7i67c0hn3bzcwny08rgjrrnarqnqw10qpmh2blbx9hd78kfkha"))))
> -    (build-system cargo-build-system)
>      (arguments
>       `(#:cargo-inputs
>         (("rust-crypto-mac" ,rust-crypto-mac-0.8)
> @@ -8665,14 +8686,11 @@ (define-public rust-blake2-0.9
>         #:cargo-development-inputs
>         (("rust-crypto-mac" ,rust-crypto-mac-0.8)
>          ("rust-digest" ,rust-digest-0.9)
> -        ("rust-hex-literal" ,rust-hex-literal-0.2))))
> -    (home-page "https://github.com/RustCrypto/hashes")
> -    (synopsis "BLAKE2 hash functions")
> -    (description "This package provides BLAKE2 hash functions in Rust.")
> -    (license (list license:expat license:asl2.0))))
> +        ("rust-hex-literal" ,rust-hex-literal-0.2))))))
>  
>  (define-public rust-blake2-0.8
>    (package
> +    (inherit rust-blake2-0.10)
>      (name "rust-blake2")
>      (version "0.8.1")
>      (source
> @@ -8684,7 +8702,6 @@ (define-public rust-blake2-0.8
>         (sha256
>          (base32
>           "0c4k11j04kqhkci6i9b7lz6p13kpcv228pdqixgrawvavaq0gjwl"))))
> -    (build-system cargo-build-system)
>      (arguments
>       `(#:cargo-inputs
>         (("rust-byte-tools" ,rust-byte-tools-0.3)
> @@ -8694,11 +8711,7 @@ (define-public rust-blake2-0.8
>         #:cargo-development-inputs
>         (("rust-crypto-mac" ,rust-crypto-mac-0.7)
>          ("rust-digest" ,rust-digest-0.8)
> -        ("rust-hex-literal" ,rust-hex-literal-0.1))))
> -    (home-page "https://github.com/RustCrypto/hashes")
> -    (synopsis "BLAKE2 hash functions")
> -    (description "This package provides BLAKE2 hash functions in Rust.")
> -    (license (list license:expat license:asl2.0))))
> +        ("rust-hex-literal" ,rust-hex-literal-0.1))))))
>  
>  (define-public rust-blake2b-simd-1
>    (package
> 
> base-commit: e16d152463d04792af086ec4505d8a0a41b8206b
> -- 
> 2.41.0
> 
> 
> 

-- 
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:[~2023-11-05 10:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-04 21:05 [bug#66937] [PATCH] gnu: Add rust-blake2-0.10 VÖRÖSKŐI András
2023-11-05 10:30 ` bug#66937: " 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).