2018-07-03 18:26:34 +00:00
|
|
|
{ stdenv, config, callPackage, wineBuild }:
|
2018-05-16 23:29:26 +00:00
|
|
|
|
|
|
|
rec {
|
2022-02-16 02:36:57 +00:00
|
|
|
fonts = callPackage ../applications/emulators/wine/fonts.nix {};
|
|
|
|
minimal = callPackage ../applications/emulators/wine {
|
2018-05-16 23:29:26 +00:00
|
|
|
wineRelease = config.wine.release or "stable";
|
2018-07-03 18:26:34 +00:00
|
|
|
inherit wineBuild;
|
2018-05-16 23:29:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
base = minimal.override {
|
|
|
|
gettextSupport = true;
|
2022-02-16 00:37:55 +00:00
|
|
|
fontconfigSupport = stdenv.isLinux;
|
|
|
|
alsaSupport = stdenv.isLinux;
|
2018-05-16 23:29:26 +00:00
|
|
|
openglSupport = true;
|
2022-04-22 13:38:47 +00:00
|
|
|
# Works on Darwin but disabled by default to prevent Hydra build failures due to MoltenVK.
|
|
|
|
vulkanSupport = stdenv.isLinux;
|
2018-05-16 23:29:26 +00:00
|
|
|
tlsSupport = true;
|
|
|
|
cupsSupport = true;
|
2022-02-16 00:37:55 +00:00
|
|
|
dbusSupport = stdenv.isLinux;
|
|
|
|
cairoSupport = stdenv.isLinux;
|
2018-05-16 23:29:26 +00:00
|
|
|
cursesSupport = true;
|
2022-02-16 00:37:55 +00:00
|
|
|
saneSupport = stdenv.isLinux;
|
2018-05-16 23:29:26 +00:00
|
|
|
pulseaudioSupport = config.pulseaudio or stdenv.isLinux;
|
2022-02-16 00:37:55 +00:00
|
|
|
udevSupport = stdenv.isLinux;
|
|
|
|
xineramaSupport = stdenv.isLinux;
|
2018-11-24 15:44:20 +00:00
|
|
|
sdlSupport = true;
|
2020-12-29 16:53:01 +00:00
|
|
|
mingwSupport = true;
|
2022-02-16 00:39:10 +00:00
|
|
|
usbSupport = true;
|
2018-05-16 23:29:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
full = base.override {
|
2022-02-16 00:37:55 +00:00
|
|
|
gtkSupport = stdenv.isLinux;
|
2018-05-16 23:29:26 +00:00
|
|
|
gstreamerSupport = true;
|
|
|
|
openalSupport = true;
|
|
|
|
openclSupport = true;
|
|
|
|
odbcSupport = true;
|
2022-02-16 00:37:55 +00:00
|
|
|
netapiSupport = stdenv.isLinux;
|
|
|
|
vaSupport = stdenv.isLinux;
|
2018-05-16 23:29:26 +00:00
|
|
|
pcapSupport = true;
|
2022-02-16 00:37:55 +00:00
|
|
|
v4lSupport = stdenv.isLinux;
|
2018-05-16 23:29:26 +00:00
|
|
|
gphoto2Support = true;
|
2022-02-16 00:39:10 +00:00
|
|
|
krb5Support = true;
|
2018-05-16 23:29:26 +00:00
|
|
|
ldapSupport = true;
|
2022-04-22 13:38:47 +00:00
|
|
|
# Works on Darwin but disabled by default to prevent Hydra build failures due to MoltenVK.
|
|
|
|
vkd3dSupport = stdenv.isLinux;
|
2021-09-27 12:08:31 +00:00
|
|
|
embedInstallers = true;
|
2018-05-16 23:29:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
stable = base.override { wineRelease = "stable"; };
|
2021-11-06 07:03:36 +00:00
|
|
|
stableFull = full.override { wineRelease = "stable"; };
|
|
|
|
|
2018-05-16 23:29:26 +00:00
|
|
|
unstable = base.override { wineRelease = "unstable"; };
|
2021-11-06 07:03:36 +00:00
|
|
|
unstableFull = full.override { wineRelease = "unstable"; };
|
|
|
|
|
2018-05-16 23:29:26 +00:00
|
|
|
staging = base.override { wineRelease = "staging"; };
|
2021-11-06 07:03:36 +00:00
|
|
|
stagingFull = full.override { wineRelease = "staging"; };
|
2022-01-03 04:10:16 +00:00
|
|
|
|
|
|
|
wayland = base.override { wineRelease = "wayland"; };
|
|
|
|
waylandFull = full.override { wineRelease = "wayland"; };
|
2018-05-16 23:29:26 +00:00
|
|
|
}
|