diff --git a/default.nix b/default.nix index 3e5647d..08b54c8 100644 --- a/default.nix +++ b/default.nix @@ -7,8 +7,10 @@ dxvkPatches ? [ ], dxvkAsync ? false, winePackage ? pkgs.wineWowPackages.unstable, + wineSrc ? null, wineGlobalEnv ? [ "DXVK_STATE_CACHE=0" ], - winePatches ? [ ./patches/joyaxis.patch ./patches/wine_6.13_fastsync2.patch ./patches/device_seek_penalty.patch ], + winePatches ? [], + applyReccomendedWinePatches ? true, virtualDesktop ? null, registryFiles ? [ ], captureMouse ? true @@ -21,8 +23,10 @@ assert virtualDesktop == null || assert !(builtins.any (lib.strings.hasSuffix "/") [ installDir launcherCache prefixBaseDir ]); let + wineReccomendedPatches = [ ./patches/joyaxis.patch ./patches/wine_6.13_fastsync2.patch ./patches/device_seek_penalty.patch ]; winePkg = winePackage.overrideAttrs (attrs: { - patches = attrs.patches ++ winePatches; + patches = (if wineSrc == null then attrs.patches else []) ++ winePatches ++ lib.optional applyReccomendedWinePatches wineReccomendedPatches ; + src = if wineSrc != null then wineSrc else attrs.src; }); dxvk = (pkgsCross.mingwW64.callPackage ./dxvk.nix { async = dxvkAsync; }).overrideAttrs ( attrs: { patches = attrs.patches ++ dxvkPatches; });