linuxPackages.ddcci-driver: fix build with Linux >= 6.8

+11 -2
+11 -2
pkgs/os-specific/linux/ddcci/default.nix
··· 1 - { lib, stdenv, fetchFromGitLab, kernel }: 1 + { lib, stdenv, fetchFromGitLab, kernel, fetchpatch }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "ddcci-driver"; ··· 11 11 rev = "v${version}"; 12 12 hash = "sha256-4pCfXJcteWwU6cK8OOSph4XlhKTk289QqLxsSWY7cac="; 13 13 }; 14 + 15 + patches = [ 16 + # See https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/-/merge_requests/15 17 + (fetchpatch { 18 + name = "fix-build-with-linux68.patch"; 19 + url = "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/-/commit/3eb20df68a545d07b8501f13fa9d20e9c6f577ed.patch"; 20 + hash = "sha256-Y1ktYaJTd9DtT/mwDqtjt/YasW9cVm0wI43wsQhl7Bg="; 21 + }) 22 + ]; 14 23 15 24 hardeningDisable = [ "pic" ]; 16 25 ··· 36 45 description = "Kernel module driver for DDC/CI monitors"; 37 46 homepage = "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux"; 38 47 license = licenses.gpl2Plus; 39 - maintainers = with maintainers; [ ]; 48 + maintainers = with maintainers; [ kiike ]; 40 49 platforms = platforms.linux; 41 50 broken = kernel.kernelOlder "5.1"; 42 51 };