cargo-wizard: fix aarch64-linux test expectation
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user