Wine: Difference between revisions
imported>Makefu initial batch of nixos-users |
imported>Fadenb m Syntaxhighlight |
||
Line 3: | Line 3: | ||
The default wine package only supports 32bit apps, to make it work with 64bit as well you have to override the wineBuild option like this: | The default wine package only supports 32bit apps, to make it work with 64bit as well you have to override the wineBuild option like this: | ||
< | <syntaxhighlight lang="nix">{ | ||
environment.systemPackages = with pkgs; [ | environment.systemPackages = with pkgs; [ | ||
#... | #... | ||
(wine.override { wineBuild = | (wine.override { wineBuild = "wineWow"; }) | ||
# use the following variant to get a 64bit only wine | # use the following variant to get a 64bit only wine | ||
#(wine.override { wineBuild = | #(wine.override { wineBuild = "wine64"; }) | ||
# wineStaging also accepts the wineBuild argument | # wineStaging also accepts the wineBuild argument | ||
#(wineStaging.override { wineBuild = | #(wineStaging.override { wineBuild = "wineWow"; }) | ||
#... | #... | ||
]; | ]; | ||
}</ | }</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 11:49, 27 August 2017
Both 32bit and 64bit Support
The default wine package only supports 32bit apps, to make it work with 64bit as well you have to override the wineBuild option like this:
{
environment.systemPackages = with pkgs; [
#...
(wine.override { wineBuild = "wineWow"; })
# use the following variant to get a 64bit only wine
#(wine.override { wineBuild = "wine64"; })
# wineStaging also accepts the wineBuild argument
#(wineStaging.override { wineBuild = "wineWow"; })
#...
];
}
The override
method is mentioned in the manual.