···85858686 cmakeDir = "../drivers/xgl";
87878888+ cmakeFlags = [
8989+ # There is some incredibly cursed issue with
9090+ # `directx-shader-compiler` flagging up compiler errors only on
9191+ # `i686-linux` and only when it has been compiled with a recent
9292+ # GCC. Since few 32‐bit games are going to use ray tracing anyway,
9393+ # we just disable it for now. Arch has done this since 2022.
9494+ #
9595+ # See:
9696+ # * <https://github.com/NixOS/nixpkgs/issues/216294>
9797+ # * <https://github.com/GPUOpen-Drivers/gpurt/issues/5>
9898+ # * <https://gitlab.archlinux.org/archlinux/packaging/packages/lib32-amdvlk/-/commit/905d9bc2cf4a003b3d367537b5e120d9771cce16>
9999+ (lib.cmakeBool "VKI_RAY_TRACING" (!(stdenv.hostPlatform.isx86 && stdenv.hostPlatform.is32bit)))
100100+ ];
101101+88102 installPhase = ''
89103 runHook preInstall
90104