veloren: fix build with rust ≥ 1.95

This commit is contained in:
rnhmjoj
2026-06-30 08:36:18 +02:00
parent 917a5db343
commit 076581a3c6
+7
View File
@@ -50,6 +50,13 @@ rustPlatform.buildRustPackage {
cargoHash = "sha256-1qLE1UeP2i0xaOGLniZzdjIkBbme6rctGfcO9Kfoh5E=";
postPatch = ''
# Fix hashbrown on rust 1.95
# (https://github.com/rust-lang/hashbrown/pull/662)
substituteInPlace "$cargoDepsCopy"/*/hashbrown-0.16.0/src/lib.rs \
--replace-fail 'strict_provenance_lints' 'strict_provenance_lints,trivial_clone'
substituteInPlace "$cargoDepsCopy"/*/hashbrown-0.16.0/src/raw/mod.rs \
--replace-fail 'T: Copy,' 'T: core::clone::TrivialClone,'
# Force vek to build in unstable mode
tee "$cargoDepsCopy"/*/vek-*/build.rs > /dev/null <<'EOF'
fn main() {