diff --git a/pkgs/tools/inputmethods/fcitx5/default.nix b/pkgs/tools/inputmethods/fcitx5/default.nix index 87538eabbe83..aa1d4beea88d 100644 --- a/pkgs/tools/inputmethods/fcitx5/default.nix +++ b/pkgs/tools/inputmethods/fcitx5/default.nix @@ -4,6 +4,7 @@ fetchurl, fetchFromGitHub, pkg-config, + buildPackages, cmake, extra-cmake-modules, wayland-scanner, @@ -95,6 +96,10 @@ stdenv.mkDerivation rec { libxkbfile ]; + cmakeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ + (lib.cmakeFeature "CMAKE_CROSSCOMPILING_EMULATOR" (stdenv.hostPlatform.emulator buildPackages)) + ]; + strictDeps = true; passthru = {