mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
git: use cargoShortTarget for RUST_TARGET_DIR in cross compilation
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user