git: use cargoShortTarget for RUST_TARGET_DIR in cross compilation

This commit is contained in:
fzdslr-nw
2026-03-27 16:49:01 +00:00
parent 0f0d99513f
commit d81dcd939a

View File

@@ -168,7 +168,7 @@ stdenv.mkDerivation (finalAttrs: {
+ lib.optionalString (rustSupport && (stdenv.buildPlatform != stdenv.hostPlatform)) ''
substituteInPlace Makefile \
--replace-fail "RUST_TARGET_DIR = target/" \
"RUST_TARGET_DIR = target/${stdenv.hostPlatform.rust.rustcTargetSpec}/"
"RUST_TARGET_DIR = target/${stdenv.hostPlatform.rust.cargoShortTarget}/"
'';
nativeBuildInputs = [