mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 09:47:52 +00:00
[Hardware/Mesa] Fix OpenCL support
This commit is contained in:
parent
7a4243b90a
commit
fc90a35f59
1 changed files with 9 additions and 0 deletions
|
|
@ -73,6 +73,15 @@ in {
|
|||
hardware.opengl = {
|
||||
package = with pkgs; cfg.internal.package.drivers;
|
||||
package32 = with pkgs; cfg.internal.package32.drivers;
|
||||
|
||||
extraPackages = optional (hasAttr "opencl" cfg.internal.package.out) cfg.internal.package.out.opencl;
|
||||
extraPackages32 = optional (hasAttr "opencl" cfg.internal.package32.out) cfg.internal.package32.out.opencl;
|
||||
};
|
||||
|
||||
# Warning: mesa has many outputs, and "opencl" is not in "drivers"
|
||||
# See pkgs.mesa.outputs
|
||||
|
||||
environment.variables = {
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue