Wine: Difference between revisions
From NixOS Wiki
m Fixed typo |
Update old wineWowPackages names |
||
| Line 10: | Line 10: | ||
# support both 32-bit and 64-bit applications | # support both 32-bit and 64-bit applications | ||
wineWow64Packages.stable | |||
# support 32-bit only | # support 32-bit only | ||
| Line 22: | Line 22: | ||
# wine-staging (version with experimental features) | # wine-staging (version with experimental features) | ||
wineWow64Packages.staging | |||
# winetricks (all versions) | # winetricks (all versions) | ||
| Line 28: | Line 28: | ||
# native wayland support (unstable) | # native wayland support (unstable) | ||
wineWow64Packages.waylandFull | |||
]; | ]; | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
If you get the error <code>wine: '/path/to/your/wineprefix' is a 64-bit installation, it cannot be used with a 32-bit wineserver.</code>, then you need a 64-bit build like <code> | If you get the error <code>wine: '/path/to/your/wineprefix' is a 64-bit installation, it cannot be used with a 32-bit wineserver.</code>, then you need a 64-bit build like <code>wine64WowPackages</code>. | ||
The <code>override</code> method is mentioned in [https://nixos.org/nixos/manual/index.html#sec-customising-packages the manual]. | The <code>override</code> method is mentioned in [https://nixos.org/nixos/manual/index.html#sec-customising-packages the manual]. | ||
Latest revision as of 13:22, 28 February 2026
32-bit and 64-bit Support
On x86_64-linux, the wine package supports by default both 32-bit and 64-bit applications. On every other platform, the wine package supports by default only 32-bit applications.
These defaults can however be overwritten like this:
{
environment.systemPackages = with pkgs; [
# ...
# support both 32-bit and 64-bit applications
wineWow64Packages.stable
# support 32-bit only
wine
# support 64-bit only
(wine.override { wineBuild = "wine64"; })
# support 64-bit only
wine64
# wine-staging (version with experimental features)
wineWow64Packages.staging
# winetricks (all versions)
winetricks
# native wayland support (unstable)
wineWow64Packages.waylandFull
];
}
If you get the error wine: '/path/to/your/wineprefix' is a 64-bit installation, it cannot be used with a 32-bit wineserver., then you need a 64-bit build like wine64WowPackages.
The override method is mentioned in the manual.