Wine: Difference between revisions

From NixOS Wiki
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:


<pre class="nix">{
<syntaxhighlight lang="nix">{
   environment.systemPackages = with pkgs; [
   environment.systemPackages = with pkgs; [
       #...
       #...
       (wine.override { wineBuild = &quot;wineWow&quot;; })
       (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 = &quot;wine64&quot;; })
       #(wine.override { wineBuild = "wine64"; })
       # wineStaging also accepts the wineBuild argument
       # wineStaging also accepts the wineBuild argument
       #(wineStaging.override { wineBuild = &quot;wineWow&quot;; })
       #(wineStaging.override { wineBuild = "wineWow"; })
       #...
       #...
   ];
   ];
}</pre>
}</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.