mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
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:
committed by
r-vdp
parent
771019be26
commit
9b58e094df
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user