Skip to content

Commit 9b58e09

Browse files
DarkKirbr-vdp
authored andcommitted
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.
1 parent 771019b commit 9b58e09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkgs/by-name/fi/fish/package.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ stdenv.mkDerivation (finalAttrs: {
268268
cmakeFlags =
269269
[
270270
"-DCMAKE_INSTALL_DOCDIR=${placeholder "doc"}/share/doc/fish"
271+
"-DRust_CARGO_TARGET=${stdenv.hostPlatform.rust.rustcTarget}"
271272
]
272273
++ lib.optionals stdenv.hostPlatform.isDarwin [
273274
"-DMAC_CODESIGN_ID=OFF"

0 commit comments

Comments
 (0)