cargo-wizard: fix aarch64-linux test expectation

This commit is contained in:
Angel J
2026-05-04 20:22:38 -07:00
parent 73c703c224
commit b407a8797d
+8
View File
@@ -18,6 +18,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-vRakgwZRyYkk3xFfZzl197tgRmx+/g2b8eaDunwrCzM=";
# cargo-wizard still suggests lld for aarch64-linux on Rust 1.90+, so the
# nightly integration test must expect both rustflags there.
postPatch = ''
substituteInPlace tests/integration/dialog.rs \
--replace-fail 'if rustversion::cfg!(before(1.90.0)) {' \
'if rustversion::cfg!(before(1.90.0)) || cfg!(all(target_os = "linux", target_arch = "aarch64")) {'
'';
preCheck = ''
export PATH=$PATH:$PWD/target/${stdenv.hostPlatform.rust.rustcTarget}/$cargoBuildType
'';