Add reccommended patches switch, expose wine src.

This commit is contained in:
Philipp 2021-07-26 21:44:18 +02:00
parent 99d54c9655
commit 873155b644
No known key found for this signature in database
GPG key ID: 2258EE3B85DE1748

View file

@ -7,8 +7,10 @@
dxvkPatches ? [ ], dxvkPatches ? [ ],
dxvkAsync ? false, dxvkAsync ? false,
winePackage ? pkgs.wineWowPackages.unstable, winePackage ? pkgs.wineWowPackages.unstable,
wineSrc ? null,
wineGlobalEnv ? [ "DXVK_STATE_CACHE=0" ], 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, virtualDesktop ? null,
registryFiles ? [ ], registryFiles ? [ ],
captureMouse ? true captureMouse ? true
@ -21,8 +23,10 @@ assert virtualDesktop == null ||
assert !(builtins.any (lib.strings.hasSuffix "/") [ installDir launcherCache prefixBaseDir ]); assert !(builtins.any (lib.strings.hasSuffix "/") [ installDir launcherCache prefixBaseDir ]);
let let
wineReccomendedPatches = [ ./patches/joyaxis.patch ./patches/wine_6.13_fastsync2.patch ./patches/device_seek_penalty.patch ];
winePkg = winePackage.overrideAttrs (attrs: { 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 dxvk = (pkgsCross.mingwW64.callPackage ./dxvk.nix { async = dxvkAsync; }).overrideAttrs
( attrs: { patches = attrs.patches ++ dxvkPatches; }); ( attrs: { patches = attrs.patches ++ dxvkPatches; });