forked from mirrors/nixpkgs
Add services.xserver.s3tcSupport option
This commit is contained in:
parent
a3757a2f67
commit
89854548e7
|
@ -229,6 +229,14 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
s3tcSupport = mkOption {
|
||||
default = false;
|
||||
description = ''
|
||||
Make S2TC via libtxc_dxtn available to OpenGL drivers. Using
|
||||
this library may require a patent license depending on your location.
|
||||
'';
|
||||
};
|
||||
|
||||
startOpenSSHAgent = mkOption {
|
||||
default = true;
|
||||
description = ''
|
||||
|
@ -410,7 +418,9 @@ in
|
|||
optionals (elem "nvidia" driverNames) [ "nouveau" "nvidiafb" ];
|
||||
|
||||
environment.variables.LD_LIBRARY_PATH =
|
||||
[ "/run/opengl-driver/lib" "/run/opengl-driver-32/lib" ];
|
||||
[ "/run/opengl-driver/lib" "/run/opengl-driver-32/lib" ]
|
||||
++ pkgs.lib.optional cfg.s3tcSupport "${pkgs.libtxc_dxtn}/lib"
|
||||
++ pkgs.lib.optional (cfg.s3tcSupport && cfg.driSupport32Bit) "${pkgs_i686.libtxc_dxtn}/lib";
|
||||
|
||||
environment.etc =
|
||||
(optionals cfg.exportConfiguration
|
||||
|
|
Loading…
Reference in a new issue