about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-11-19 11:00:56 -0500
committerGitHub <noreply@github.com>2023-11-19 11:00:56 -0500
commita6bfda8513babc19a5fa8dc04b6149caa8c36201 (patch)
tree771c0f2c49b331162393b3a81926dec7b6f55d81 /pkgs
parentff3b4803547ab5377d4c0b482b7c5333edee6d00 (diff)
parent1282d0ee3d7707bf1f12b6c2da9ab275b890472f (diff)
Merge pull request #268495 from Kiskae/nvidia/545-brightness-fix
linuxPackages.nvidia_x11.open: apply brightness patch
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/os-specific/linux/nvidia-x11/open.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/nvidia-x11/open.nix b/pkgs/os-specific/linux/nvidia-x11/open.nix
index a6795c3fd5e77..0625985c908fe 100644
--- a/pkgs/os-specific/linux/nvidia-x11/open.nix
+++ b/pkgs/os-specific/linux/nvidia-x11/open.nix
@@ -1,6 +1,7 @@
 { stdenv
 , lib
 , fetchFromGitHub
+, fetchpatch
 , kernel
 , nvidia_x11
 , hash
@@ -18,6 +19,13 @@ stdenv.mkDerivation ({
     inherit hash;
   };
 
+  patches = lib.optionals (nvidia_x11.version == "545.29.02")[
+    (fetchpatch {
+      url = "https://github.com/NVIDIA/open-gpu-kernel-modules/files/13310810/0001-nvkms-initialize-brightnessType-in-_BACKLIGHT_BRIGHT.patch.txt";
+      hash = "sha256-9N+DbyT4VmGNTHXWf23PJU4YWZS+0JK7yqkmkpnINPk=";
+    })
+  ];
+
   nativeBuildInputs = kernel.moduleBuildDependencies;
 
   makeFlags = kernel.makeFlags ++ [