mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
b2182b9130
Makes base.nix less Wayland-centric. This means: - Don't specify support in the meta.description (since even regular Wine supports it, it's specified everywhere) - `x11Support` and `waylandSupport` are now set in `wine-packages.nix`, like every other flag (they are also now disabled on minimal) - Disable Darwin in supported platforms if an incompatible supportFlag is true (not just `waylandSupport`) - Add wineRelease name for every release other than "stable" or "unstable", instead of just "wayland" - This also fixes an inconsistency on wine-staging, where "-staging" was written after the version
58 lines
1.7 KiB
Nix
58 lines
1.7 KiB
Nix
{ stdenv, config, callPackage, wineBuild }:
|
|
|
|
rec {
|
|
fonts = callPackage ../applications/emulators/wine/fonts.nix {};
|
|
minimal = callPackage ../applications/emulators/wine {
|
|
wineRelease = config.wine.release or "stable";
|
|
inherit wineBuild;
|
|
};
|
|
|
|
base = minimal.override {
|
|
gettextSupport = true;
|
|
fontconfigSupport = stdenv.isLinux;
|
|
alsaSupport = stdenv.isLinux;
|
|
openglSupport = true;
|
|
vulkanSupport = true;
|
|
tlsSupport = true;
|
|
cupsSupport = true;
|
|
dbusSupport = stdenv.isLinux;
|
|
cairoSupport = stdenv.isLinux;
|
|
cursesSupport = true;
|
|
saneSupport = stdenv.isLinux;
|
|
pulseaudioSupport = config.pulseaudio or stdenv.isLinux;
|
|
udevSupport = stdenv.isLinux;
|
|
xineramaSupport = stdenv.isLinux;
|
|
sdlSupport = true;
|
|
mingwSupport = true;
|
|
usbSupport = true;
|
|
waylandSupport = stdenv.isLinux;
|
|
x11Support = stdenv.isLinux;
|
|
};
|
|
|
|
full = base.override {
|
|
gtkSupport = stdenv.isLinux;
|
|
gstreamerSupport = true;
|
|
openclSupport = true;
|
|
odbcSupport = true;
|
|
netapiSupport = stdenv.isLinux;
|
|
vaSupport = stdenv.isLinux;
|
|
pcapSupport = true;
|
|
v4lSupport = stdenv.isLinux;
|
|
gphoto2Support = true;
|
|
krb5Support = true;
|
|
embedInstallers = true;
|
|
};
|
|
|
|
stable = base.override { wineRelease = "stable"; };
|
|
stableFull = full.override { wineRelease = "stable"; };
|
|
|
|
unstable = base.override { wineRelease = "unstable"; };
|
|
unstableFull = full.override { wineRelease = "unstable"; };
|
|
|
|
staging = base.override { wineRelease = "staging"; };
|
|
stagingFull = full.override { wineRelease = "staging"; };
|
|
|
|
wayland = base.override { wineRelease = "wayland"; waylandSupport = true; };
|
|
waylandFull = full.override { wineRelease = "wayland"; waylandSupport = true; };
|
|
}
|