nixpkgs/pkgs/misc/emulators/wine/default.nix

70 lines
2.2 KiB
Nix
Raw Normal View History

## Configuration:
# Control you default wine config in nixpkgs-config:
# wine = {
# release = "stable"; # "stable", "unstable", "staging"
# 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",
2016-05-29 08:43:47 +00:00
pngSupport ? false,
jpegSupport ? false,
tiffSupport ? false,
gettextSupport ? false,
fontconfigSupport ? false,
alsaSupport ? false,
gtkSupport ? false,
openglSupport ? false,
tlsSupport ? false,
gstreamerSupport ? false,
cupsSupport ? false,
colorManagementSupport ? false,
dbusSupport ? false,
mpg123Support ? false,
openalSupport ? false,
openclSupport ? false,
cairoSupport ? false,
odbcSupport ? false,
netapiSupport ? false,
cursesSupport ? false,
vaSupport ? false,
pcapSupport ? false,
v4lSupport ? false,
saneSupport ? false,
gsmSupport ? false,
gphoto2Support ? false,
ldapSupport ? false,
2015-12-24 01:58:57 +00:00
pulseaudioSupport ? false,
2017-05-23 23:07:23 +00:00
udevSupport ? false,
2016-05-29 08:43:47 +00:00
xineramaSupport ? false,
2018-04-23 14:02:12 +00:00
xmlSupport ? false,
vulkanSupport ? false,
2018-11-24 15:44:20 +00:00
sdlSupport ? false,
faudioSupport ? false,
vkd3dSupport ? false,
2020-11-09 23:33:43 +00:00
mingwSupport ? false,
2018-04-23 14:02:12 +00:00
}:
let wine-build = build: release:
lib.getAttr build (callPackage ./packages.nix {
wineRelease = release;
2016-05-29 08:43:47 +00:00
supportFlags = {
inherit pngSupport jpegSupport cupsSupport colorManagementSupport gettextSupport
dbusSupport mpg123Support openalSupport cairoSupport tiffSupport odbcSupport
netapiSupport cursesSupport vaSupport pcapSupport v4lSupport saneSupport
gsmSupport gphoto2Support ldapSupport fontconfigSupport alsaSupport
pulseaudioSupport xineramaSupport gtkSupport openclSupport xmlSupport tlsSupport
openglSupport gstreamerSupport udevSupport vulkanSupport sdlSupport faudioSupport
2020-11-09 23:33:43 +00:00
vkd3dSupport mingwSupport;
2016-05-29 08:43:47 +00:00
};
});
in if wineRelease == "staging" then
callPackage ./staging.nix {
wineUnstable = wine-build wineBuild "unstable";
}
else
wine-build wineBuild wineRelease