Subject: [bug#50662] [PATCH 24/34] gnu: rust-x86-0.33: Fix version requirement.

From: Vinicius Monego <[email-masked]>
Date: Sat, 18 Sep 2021 16:13:26 +0000

* gnu/packages/crates-io.scm (rust-x86-0.33)[source]: Add snippet to fix
rust-raw-cpuid-8 version requirement.
---
 gnu/packages/crates-io.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9547601775..5c17a71875 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -57971,7 +57971,13 @@ non-cryptographic hashing algorithm and random number generator.")
        (uri (crate-uri "x86" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0sas98yzn549f5lxswqra2rjdfjxh24f3ndw5dfsnwnm9rlsr1i7"))))
+        (base32 "0sas98yzn549f5lxswqra2rjdfjxh24f3ndw5dfsnwnm9rlsr1i7"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           (substitute* "Cargo.toml"
+             (("8.0.\\*") "^8"))
+           #t))))
     (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
-- 
2.30.2