2015-04-21 18:00:59 +02:00
|
|
|
## Configuration:
|
|
|
|
# Control you default wine config in nixpkgs-config:
|
|
|
|
# wine = {
|
2015-05-10 21:33:00 +02:00
|
|
|
# release = "stable"; # "stable", "unstable", "staging"
|
2015-04-21 18:00:59 +02:00
|
|
|
# build = "wineWow"; # "wine32", "wine64", "wineWow"
|
|
|
|
# };
|
|
|
|
# Make additional configurations on demand:
|
2015-05-10 21:33:00 +02:00
|
|
|
# wine.override { wineBuild = "wine32"; wineRelease = "staging"; };
|
2018-08-20 21:11:29 +02:00
|
|
|
{ lib, stdenv, callPackage,
|
2015-04-21 18:00:59 +02:00
|
|
|
wineRelease ? "stable",
|
2018-08-20 21:11:29 +02:00
|
|
|
wineBuild ? if stdenv.hostPlatform.system == "x86_64-linux" then "wineWow" else "wine32",
|
2016-05-29 10:43:47 +02:00
|
|
|
libtxc_dxtn_Name ? "libtxc_dxtn_s2tc",
|
|
|
|
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 02:58:57 +01:00
|
|
|
pulseaudioSupport ? false,
|
2017-05-24 01:07:23 +02:00
|
|
|
udevSupport ? false,
|
2016-05-29 10:43:47 +02:00
|
|
|
xineramaSupport ? false,
|
2018-04-23 16:02:12 +02:00
|
|
|
xmlSupport ? false,
|
|
|
|
vulkanSupport ? false,
|
2018-11-24 16:44:20 +01:00
|
|
|
sdlSupport ? false,
|
2018-04-23 16:02:12 +02:00
|
|
|
}:
|
2015-04-21 18:00:59 +02:00
|
|
|
|
2015-10-28 21:39:46 +01:00
|
|
|
let wine-build = build: release:
|
|
|
|
lib.getAttr build (callPackage ./packages.nix {
|
|
|
|
wineRelease = release;
|
2016-05-29 10:43:47 +02: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
|
2018-11-24 16:44:20 +01:00
|
|
|
openglSupport gstreamerSupport udevSupport vulkanSupport sdlSupport;
|
2016-05-29 10:43:47 +02:00
|
|
|
};
|
2015-10-28 21:39:46 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
in if wineRelease == "staging" then
|
2018-03-24 15:58:35 +01:00
|
|
|
callPackage ./staging.nix {
|
|
|
|
inherit libtxc_dxtn_Name;
|
|
|
|
wineUnstable = wine-build wineBuild "unstable";
|
|
|
|
}
|
2015-05-10 21:33:00 +02:00
|
|
|
else
|
2015-10-28 21:39:46 +01:00
|
|
|
wine-build wineBuild wineRelease
|