diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix index d01980ee3a91..17f0f3df04e1 100644 --- a/pkgs/development/interpreters/ruby/default.nix +++ b/pkgs/development/interpreters/ruby/default.nix @@ -57,9 +57,13 @@ let }: let ver = version; + isCross = stdenv.buildPlatform != stdenv.hostPlatform; # https://github.com/ruby/ruby/blob/v3_2_2/yjit.h#L21 yjitSupported = - stdenv.hostPlatform.isx86_64 || (!stdenv.hostPlatform.isWindows && stdenv.hostPlatform.isAarch64); + !isCross + && ( + stdenv.hostPlatform.isx86_64 || (!stdenv.hostPlatform.isWindows && stdenv.hostPlatform.isAarch64) + ); rubyDrv = lib.makeOverridable ( { stdenv,