Add reccommended patches switch, expose wine src.
This commit is contained in:
parent
99d54c9655
commit
873155b644
|
@ -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; });
|
||||
|
|
Loading…
Reference in a new issue