From d81dcd939a7c72babddff10a2d6b4742254e35ef Mon Sep 17 00:00:00 2001 From: fzdslr-nw Date: Fri, 27 Mar 2026 16:49:01 +0000 Subject: [PATCH] git: use cargoShortTarget for RUST_TARGET_DIR in cross compilation --- pkgs/by-name/gi/git/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/gi/git/package.nix b/pkgs/by-name/gi/git/package.nix index 3d193e8055e2..fec62fc328b6 100644 --- a/pkgs/by-name/gi/git/package.nix +++ b/pkgs/by-name/gi/git/package.nix @@ -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 = [