Merge pull request #268495 from Kiskae/nvidia/545-brightness-fix

linuxPackages.nvidia_x11.open: apply brightness patch

authored by Nick Cao and committed by GitHub a6bfda85 ff3b4803

+8
+8
pkgs/os-specific/linux/nvidia-x11/open.nix
··· 1 { stdenv 2 , lib 3 , fetchFromGitHub 4 , kernel 5 , nvidia_x11 6 , hash ··· 17 rev = nvidia_x11.version; 18 inherit hash; 19 }; 20 21 nativeBuildInputs = kernel.moduleBuildDependencies; 22
··· 1 { stdenv 2 , lib 3 , fetchFromGitHub 4 + , fetchpatch 5 , kernel 6 , nvidia_x11 7 , hash ··· 18 rev = nvidia_x11.version; 19 inherit hash; 20 }; 21 + 22 + patches = lib.optionals (nvidia_x11.version == "545.29.02")[ 23 + (fetchpatch { 24 + url = "https://github.com/NVIDIA/open-gpu-kernel-modules/files/13310810/0001-nvkms-initialize-brightnessType-in-_BACKLIGHT_BRIGHT.patch.txt"; 25 + hash = "sha256-9N+DbyT4VmGNTHXWf23PJU4YWZS+0JK7yqkmkpnINPk="; 26 + }) 27 + ]; 28 29 nativeBuildInputs = kernel.moduleBuildDependencies; 30