summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-08-30 18:20:44 +0200
committerRicardo Wurmus <rekado@elephly.net>2022-09-05 00:12:46 +0200
commit7c4546d591cac73a34cee5a519222904315731a9 (patch)
treed0b651c8f18fa4fa4776024a85de2d963f2abb2b /gnu
parent333905ccff3f3d14a3a187ea2510e8d400c2ba2d (diff)
downloadguix-7c4546d591cac73a34cee5a519222904315731a9.tar.gz
gnu: rust-hashbrown-0.12: Patch Cargo.toml.
This is a follow-up to commit d7a4ab2cd50d5398d90117d6afcfccca5a158b9b.

* gnu/packages/crates-io.scm (rust-hashbrown-0.12)[source]: Add snippet to
require the "edition2021" cargo feature to avoid a failure to parse the file.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8785d6a7d3..a4c8bc5104 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -26792,7 +26792,14 @@ already-hashed or hash-like data.")
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
-                "1268ka4750pyg2pbgsr43f0289l5zah4arir2k4igx5a8c6fg7la"))))
+                "1268ka4750pyg2pbgsr43f0289l5zah4arir2k4igx5a8c6fg7la"))
+              (modules '((guix build utils)))
+              (snippet
+               ;; Without this line users of hashbrown would be unable to
+               ;; parse the contents of the Cargo.toml.
+               '(substitute* "Cargo.toml"
+                  (("\\[package\\]" m)
+                   (string-append "cargo-features = [\"edition2021\"]\n" m))))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs