diff --git a/pkgs/by-name/am/amdvlk/package.nix b/pkgs/by-name/am/amdvlk/package.nix index d743655d1eba..8b6d97d3bcae 100644 --- a/pkgs/by-name/am/amdvlk/package.nix +++ b/pkgs/by-name/am/amdvlk/package.nix @@ -85,6 +85,20 @@ stdenv.mkDerivation (finalAttrs: { cmakeDir = "../drivers/xgl"; + cmakeFlags = [ + # There is some incredibly cursed issue with + # `directx-shader-compiler` flagging up compiler errors only on + # `i686-linux` and only when it has been compiled with a recent + # GCC. Since few 32‐bit games are going to use ray tracing anyway, + # we just disable it for now. Arch has done this since 2022. + # + # See: + # * + # * + # * + (lib.cmakeBool "VKI_RAY_TRACING" (!(stdenv.hostPlatform.isx86 && stdenv.hostPlatform.is32bit))) + ]; + installPhase = '' runHook preInstall