2020-04-24 23:36:52 +00:00
|
|
|
## Configuration:
|
|
|
|
# Control you default wine config in nixpkgs-config:
|
|
|
|
# wine = {
|
2022-01-25 03:21:06 +00:00
|
|
|
# release = "stable"; # "stable", "unstable", "staging", "wayland"
|
2020-04-24 23:36:52 +00:00
|
|
|
# build = "wineWow"; # "wine32", "wine64", "wineWow"
|
|
|
|
# };
|
|
|
|
# Make additional configurations on demand:
|
|
|
|
# wine.override { wineBuild = "wine32"; wineRelease = "staging"; };
|
2022-02-21 08:47:16 +00:00
|
|
|
{ lib, stdenv, callPackage, darwin,
|
2020-04-24 23:36:52 +00:00
|
|
|
wineRelease ? "stable",
|
|
|
|
wineBuild ? if stdenv.hostPlatform.system == "x86_64-linux" then "wineWow" else "wine32",
|
|
|
|
gettextSupport ? false,
|
|
|
|
fontconfigSupport ? false,
|
|
|
|
alsaSupport ? false,
|
|
|
|
gtkSupport ? false,
|
|
|
|
openglSupport ? false,
|
|
|
|
tlsSupport ? false,
|
|
|
|
gstreamerSupport ? false,
|
|
|
|
cupsSupport ? false,
|
|
|
|
dbusSupport ? false,
|
|
|
|
openclSupport ? false,
|
|
|
|
cairoSupport ? false,
|
|
|
|
odbcSupport ? false,
|
|
|
|
netapiSupport ? false,
|
|
|
|
cursesSupport ? false,
|
|
|
|
vaSupport ? false,
|
|
|
|
pcapSupport ? false,
|
|
|
|
v4lSupport ? false,
|
|
|
|
saneSupport ? false,
|
|
|
|
gphoto2Support ? false,
|
2022-02-21 08:47:16 +00:00
|
|
|
krb5Support ? false,
|
2020-04-24 23:36:52 +00:00
|
|
|
pulseaudioSupport ? false,
|
|
|
|
udevSupport ? false,
|
|
|
|
xineramaSupport ? false,
|
|
|
|
vulkanSupport ? false,
|
|
|
|
sdlSupport ? false,
|
2022-02-21 08:47:16 +00:00
|
|
|
usbSupport ? false,
|
2024-02-29 20:09:43 +00:00
|
|
|
mingwSupport ? false,
|
|
|
|
waylandSupport ? false,
|
|
|
|
x11Support ? false,
|
2022-02-21 08:47:16 +00:00
|
|
|
embedInstallers ? false, # The Mono and Gecko MSI installers
|
|
|
|
moltenvk ? darwin.moltenvk # Allow users to override MoltenVK easily
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let wine-build = build: release:
|
|
|
|
lib.getAttr build (callPackage ./packages.nix {
|
|
|
|
wineRelease = release;
|
|
|
|
supportFlags = {
|
2022-02-10 20:34:41 +00:00
|
|
|
inherit
|
2023-10-09 19:29:22 +00:00
|
|
|
alsaSupport cairoSupport cupsSupport cursesSupport dbusSupport
|
|
|
|
embedInstallers fontconfigSupport gettextSupport gphoto2Support
|
|
|
|
gstreamerSupport gtkSupport krb5Support mingwSupport netapiSupport
|
|
|
|
odbcSupport openclSupport openglSupport pcapSupport
|
|
|
|
pulseaudioSupport saneSupport sdlSupport tlsSupport udevSupport
|
|
|
|
usbSupport v4lSupport vaSupport vulkanSupport waylandSupport
|
|
|
|
x11Support xineramaSupport
|
|
|
|
;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-02-21 08:47:16 +00:00
|
|
|
inherit moltenvk;
|
2020-04-24 23:36:52 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
in if wineRelease == "staging" then
|
|
|
|
callPackage ./staging.nix {
|
|
|
|
wineUnstable = wine-build wineBuild "unstable";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
wine-build wineBuild wineRelease
|