2015-04-21 17:00:59 +01:00
|
|
|
## Configuration:
|
|
|
|
# Control you default wine config in nixpkgs-config:
|
|
|
|
# wine = {
|
2015-05-10 20:33:00 +01:00
|
|
|
# release = "stable"; # "stable", "unstable", "staging"
|
2015-04-21 17:00:59 +01:00
|
|
|
# build = "wineWow"; # "wine32", "wine64", "wineWow"
|
|
|
|
# };
|
|
|
|
# Make additional configurations on demand:
|
2015-05-10 20:33:00 +01:00
|
|
|
# wine.override { wineBuild = "wine32"; wineRelease = "staging"; };
|
2015-10-28 20:39:46 +00:00
|
|
|
{ lib, pkgs, system, callPackage,
|
2015-04-21 17:00:59 +01:00
|
|
|
wineRelease ? "stable",
|
2015-05-10 20:33:00 +01:00
|
|
|
wineBuild ? (if system == "x86_64-linux" then "wineWow" else "wine32"),
|
2016-05-29 09:43:47 +01:00
|
|
|
libtxc_dxtn_Name ? "libtxc_dxtn_s2tc",
|
2016-06-23 11:55:27 +01:00
|
|
|
pngSupport ? false,
|
|
|
|
jpegSupport ? false,
|
2016-05-29 09:43:47 +01:00
|
|
|
tiffSupport ? false,
|
2016-06-23 11:55:27 +01:00
|
|
|
gettextSupport ? false,
|
|
|
|
fontconfigSupport ? false,
|
|
|
|
alsaSupport ? false,
|
2016-05-29 09:43:47 +01:00
|
|
|
gtkSupport ? false,
|
2016-06-23 11:55:27 +01:00
|
|
|
openglSupport ? false,
|
|
|
|
tlsSupport ? false,
|
2016-05-29 09:43:47 +01:00
|
|
|
gstreamerSupport ? false,
|
2016-06-23 11:55:27 +01:00
|
|
|
cupsSupport ? false,
|
|
|
|
colorManagementSupport ? false,
|
|
|
|
dbusSupport ? false,
|
|
|
|
mpg123Support ? false,
|
|
|
|
openalSupport ? false,
|
2016-05-29 09:43:47 +01:00
|
|
|
openclSupport ? false,
|
2016-06-23 11:55:27 +01:00
|
|
|
cairoSupport ? false,
|
2016-05-29 09:43:47 +01:00
|
|
|
odbcSupport ? false,
|
|
|
|
netapiSupport ? false,
|
2016-06-23 11:55:27 +01:00
|
|
|
cursesSupport ? false,
|
2016-05-29 09:43:47 +01:00
|
|
|
vaSupport ? false,
|
|
|
|
pcapSupport ? false,
|
|
|
|
v4lSupport ? false,
|
|
|
|
saneSupport ? false,
|
|
|
|
gsmSupport ? false,
|
|
|
|
gphoto2Support ? false,
|
|
|
|
ldapSupport ? false,
|
2016-06-23 11:55:27 +01:00
|
|
|
pulseaudioSupport ? false,
|
|
|
|
xineramaSupport ? false,
|
|
|
|
xmlSupport ? false }:
|
2015-04-21 17:00:59 +01:00
|
|
|
|
2015-10-28 20:39:46 +00:00
|
|
|
let wine-build = build: release:
|
|
|
|
lib.getAttr build (callPackage ./packages.nix {
|
|
|
|
wineRelease = release;
|
2016-05-29 09:43:47 +01: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;
|
|
|
|
};
|
2015-10-28 20:39:46 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
in if wineRelease == "staging" then
|
2015-05-10 20:33:00 +01:00
|
|
|
callPackage ./staging.nix {
|
|
|
|
inherit libtxc_dxtn_Name;
|
2015-10-28 20:39:46 +00:00
|
|
|
wineUnstable = wine-build wineBuild "unstable";
|
2015-05-10 20:33:00 +01:00
|
|
|
}
|
|
|
|
else
|
2015-10-28 20:39:46 +00:00
|
|
|
wine-build wineBuild wineRelease
|