From 1d5e9a010084cc588b450998c040761f8d926409 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Thu, 3 Aug 2023 18:08:07 +0200 Subject: [PATCH] [Gaming] yuzu: disable precompiled-headers (slows down build considerably) --- desktop/games.nix | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/desktop/games.nix b/desktop/games.nix index a798ac2..2316af7 100644 --- a/desktop/games.nix +++ b/desktop/games.nix @@ -32,15 +32,21 @@ in { { assertion = cfg.gaming.enable -> !generalCfg.minimal; message = "Gaming features are incompatible with minimal mode"; } ]; - environment.systemPackages = with pkgs; [ - gamescope - mangohud - lutris - bottles - ] ++ optionals cfg.gaming.emulation [ - (optimizePkg { recursive = 0; } cfg.gaming.yuzu.package) - (optimizePkg { } cfg.gaming.ryujinx.package) - ]; + environment.systemPackages = let + my_yuzu = cfg.gaming.yuzu.package.overrideAttrs (old: { + cmakeFlags = old.cmakeFlags ++ [ + "-DYUZU_USE_PRECOMPILED_HEADERS=OFF" + ]; + }); + in with pkgs; [ + gamescope + mangohud + lutris + bottles + ] ++ optionals cfg.gaming.emulation [ + (optimizePkg { recursive = 0; } my_yuzu) + (optimizePkg { } cfg.gaming.ryujinx.package) + ]; aviallon.windows.wine.enable = mkDefault true;