From 9b58e094df9cd044bff05a8affc2631e2bfd81c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Dele=C5=84kec?= Date: Wed, 5 Mar 2025 09:46:24 +0100 Subject: [PATCH] fish: fix cross-compile its rust cmake module is not able to accurately determine the target architecture for the rust compiler. This results in the rust part being built for the build platform. --- pkgs/by-name/fi/fish/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/fi/fish/package.nix b/pkgs/by-name/fi/fish/package.nix index 3ae0a4e0e7e3..778410e8e294 100644 --- a/pkgs/by-name/fi/fish/package.nix +++ b/pkgs/by-name/fi/fish/package.nix @@ -268,6 +268,7 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ "-DCMAKE_INSTALL_DOCDIR=${placeholder "doc"}/share/doc/fish" + "-DRust_CARGO_TARGET=${stdenv.hostPlatform.rust.rustcTarget}" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "-DMAC_CODESIGN_ID=OFF"