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.
This commit is contained in:
Charlotte 🦝 Deleńkec
2025-03-13 15:43:01 +01:00
committed by r-vdp
parent 771019be26
commit 9b58e094df
+1
View File
@@ -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"