Wine: Difference between revisions
imported>Fadenb m Syntaxhighlight |
imported>Haslersn Took into account that wineBuild defaults to: if stdenv.hostPlatform.system == "x86_64-linux" then "wineWow" else "wine32" |
||
Line 1: | Line 1: | ||
== Both 32bit and 64bit Support == | == Both 32bit and 64bit Support == | ||
On x86_64-linux, the wine package supports by default both 32- 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: | |||
<syntaxhighlight lang="nix">{ | <syntaxhighlight lang="nix">{ | ||
environment.systemPackages = with pkgs; [ | environment.systemPackages = with pkgs; [ | ||
# ... | |||
# support both 32- and 64-bit applications | |||
(wine.override { wineBuild = "wineWow"; }) | |||
# support 32-bit only | |||
# (wine.override { wineBuild = "wine32"; }) | |||
# support 64-bit only | |||
# (wine.override { wineBuild = "wine64"; }) | |||
# wineStaging accepts the wineBuild argument, too | |||
# (wineStaging.override { wineBuild = "wineWow"; }) | |||
]; | ]; | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
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]. |
Revision as of 21:56, 14 September 2018
Both 32bit and 64bit Support
On x86_64-linux, the wine package supports by default both 32- 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- and 64-bit applications
(wine.override { wineBuild = "wineWow"; })
# support 32-bit only
# (wine.override { wineBuild = "wine32"; })
# support 64-bit only
# (wine.override { wineBuild = "wine64"; })
# wineStaging accepts the wineBuild argument, too
# (wineStaging.override { wineBuild = "wineWow"; })
];
}
The override
method is mentioned in the manual.