Wine: Difference between revisions

imported>Nh2
Explain when wineWow is needed
imported>Nh2
Update how to use 32/64 bit build and staging from binary cache, see https://github.com/NixOS/nixpkgs/issues/32435#issuecomment-572741214
Line 10: Line 10:


     # support both 32- and 64-bit applications
     # support both 32- and 64-bit applications
     (wine.override { wineBuild = "wineWow"; })
     wineWowPackages.stable


     # support 32-bit only
     # support 32-bit only
     # (wine.override { wineBuild = "wine32"; })
     # wine


     # support 64-bit only
     # support 64-bit only
     # (wine.override { wineBuild = "wine64"; })
     # (wine.override { wineBuild = "wine64"; })


     # wineStaging accepts the wineBuild argument, too
     # wine-staging (version with experimental features)
     # (wineStaging.override { wineBuild = "wineWow"; })
     # wineWowPackages.staging
   ];
   ];
}</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 the 64-bit (<code>"wineWow"</code>) build.
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>wineWowPackages</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].