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"; };
|
|
|
|
{ lib, stdenv, callPackage,
|
|
|
|
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,
|
|
|
|
openalSupport ? false,
|
|
|
|
openclSupport ? false,
|
|
|
|
cairoSupport ? false,
|
|
|
|
odbcSupport ? false,
|
|
|
|
netapiSupport ? false,
|
|
|
|
cursesSupport ? false,
|
|
|
|
vaSupport ? false,
|
|
|
|
pcapSupport ? false,
|
|
|
|
v4lSupport ? false,
|
|
|
|
saneSupport ? false,
|
|
|
|
gphoto2Support ? false,
|
|
|
|
ldapSupport ? false,
|
|
|
|
pulseaudioSupport ? false,
|
|
|
|
udevSupport ? false,
|
|
|
|
xineramaSupport ? false,
|
|
|
|
vulkanSupport ? false,
|
|
|
|
sdlSupport ? false,
|
|
|
|
vkd3dSupport ? false,
|
2021-03-20 04:20:00 +00:00
|
|
|
mingwSupport ? wineRelease != "stable",
|
2022-01-25 03:21:06 +00:00
|
|
|
waylandSupport ? wineRelease == "wayland",
|
2021-09-28 08:13:01 +00:00
|
|
|
embedInstallers ? false # The Mono and Gecko MSI installers
|
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
|
|
|
|
cupsSupport gettextSupport dbusSupport openalSupport cairoSupport
|
|
|
|
odbcSupport netapiSupport cursesSupport vaSupport pcapSupport
|
|
|
|
v4lSupport saneSupport gphoto2Support ldapSupport fontconfigSupport
|
|
|
|
alsaSupport pulseaudioSupport xineramaSupport gtkSupport openclSupport
|
|
|
|
tlsSupport openglSupport gstreamerSupport udevSupport vulkanSupport
|
|
|
|
sdlSupport vkd3dSupport mingwSupport waylandSupport embedInstallers;
|
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
|