From 076581a3c6bfba3338c8df0c0a2ee9bada7ac675 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 30 Jun 2026 08:36:18 +0200 Subject: [PATCH] =?UTF-8?q?veloren:=20fix=20build=20with=20rust=20?= =?UTF-8?q?=E2=89=A5=201.95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/by-name/ve/veloren/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/ve/veloren/package.nix b/pkgs/by-name/ve/veloren/package.nix index 43b515447dd7..209cd7ff9ab2 100644 --- a/pkgs/by-name/ve/veloren/package.nix +++ b/pkgs/by-name/ve/veloren/package.nix @@ -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() {