Merge pull request #268495 from Kiskae/nvidia/545-brightness-fix
linuxPackages.nvidia_x11.open: apply brightness patch
This commit is contained in:
commit
a6bfda8513
1 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, kernel
|
, kernel
|
||||||
, nvidia_x11
|
, nvidia_x11
|
||||||
, hash
|
, hash
|
||||||
|
@ -18,6 +19,13 @@ stdenv.mkDerivation ({
|
||||||
inherit hash;
|
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;
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||||
|
|
||||||
makeFlags = kernel.makeFlags ++ [
|
makeFlags = kernel.makeFlags ++ [
|
||||||
|
|
Loading…
Reference in a new issue