Browse Source
Add reccommended patches switch, expose wine src.
main
Philipp
10 months ago
No known key found for this signature in database
GPG Key ID: 2258EE3B85DE1748
1 changed files with
6 additions and
2 deletions
-
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; }); |
|
|
|