mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-21 12:52:41 +03:00
x11/mesa: driSupport32Bit for the mesa implementation
This commit is contained in:
parent
b83be79adf
commit
37be1c8982
@ -225,7 +225,8 @@ in
|
||||
description = ''
|
||||
On 64-bit systems, whether to support Direct Rendering for
|
||||
32-bit applications (such as Wine). This is currently only
|
||||
supported for the <literal>nvidia</literal> driver.
|
||||
supported for the <literal>nvidia</literal> driver and for
|
||||
<literal>mesa</literal>.
|
||||
'';
|
||||
};
|
||||
|
||||
@ -497,9 +498,12 @@ in
|
||||
"ln -sf ${kernelPackages.nvidia_x11_legacy304} /run/opengl-driver"
|
||||
else if elem "ati_unfree" driverNames then
|
||||
"ln -sf ${kernelPackages.ati_drivers_x11} /run/opengl-driver"
|
||||
else if cfg.driSupport then
|
||||
"ln -sf ${pkgs.mesa} /run/opengl-driver"
|
||||
else ""
|
||||
else
|
||||
''
|
||||
${optionalString cfg.driSupport "ln -sf ${pkgs.mesa} /run/opengl-driver"}
|
||||
${optionalString (pkgs.stdenv.system == "x86_64-linux" && cfg.driSupport32Bit)
|
||||
"ln -sf ${pkgs_i686.mesa} /run/opengl-driver-32"}
|
||||
''
|
||||
}
|
||||
|
||||
${cfg.displayManager.job.preStart}
|
||||
|
Loading…
Reference in New Issue
Block a user