···
videoDrivers = config.services.xserver.videoDrivers;
13
-
makePackage = p: p.buildEnv {
13
+
makePackage = p: pkgs.buildEnv {
name = "mesa-drivers+txc-${p.mesa_drivers.version}";
p.mesa_noglu # mainly for libGL
(if cfg.s3tcSupport then p.libtxc_dxtn else p.libtxc_dxtn_s2tc)
22
+
package = pkgs.buildEnv {
23
+
name = "opengl-drivers";
24
+
paths = [ cfg.package ] ++ cfg.extraPackages;
27
+
package32 = pkgs.buildEnv {
28
+
name = "opengl-drivers-32bit";
29
+
paths = [ cfg.package32 ] ++ cfg.extraPackages32;
···
The package that provides the 32-bit OpenGL implementation on
78
-
64-bit systems. Used when <option>driSupport32Bit</option> is
88
+
64-bit systems. Used when <option>driSupport32Bit</option> is
93
+
hardware.opengl.extraPackages = mkOption {
94
+
type = types.listOf types.package;
97
+
Additional packages to add to OpenGL drivers.
101
+
hardware.opengl.extraPackages32 = mkOption {
102
+
type = types.listOf types.package;
105
+
Additional packages to add to 32-bit OpenGL drivers on
106
+
64-bit systems. Used when <option>driSupport32Bit</option> is
···
system.activationScripts.setup-opengl =
94
-
ln -sfn ${cfg.package} /run/opengl-driver
122
+
ln -sfn ${package} /run/opengl-driver
${if pkgs.stdenv.isi686 then ''
ln -sfn opengl-driver /run/opengl-driver-32
'' else if cfg.driSupport32Bit then ''
98
-
ln -sfn ${cfg.package32} /run/opengl-driver-32
126
+
ln -sfn ${package32} /run/opengl-driver-32
rm -f /run/opengl-driver-32