mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
Merge pull request #309948 from kiike/zhf/linuxPackages.ddcci
linuxPackages.ddcci-driver: fix build with Linux >= 6.8
This commit is contained in:
commit
bf0815649c
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitLab, kernel }:
|
||||
{ lib, stdenv, fetchFromGitLab, kernel, fetchpatch }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ddcci-driver";
|
||||
|
@ -12,6 +12,15 @@ stdenv.mkDerivation rec {
|
|||
hash = "sha256-4pCfXJcteWwU6cK8OOSph4XlhKTk289QqLxsSWY7cac=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# See https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/-/merge_requests/15
|
||||
(fetchpatch {
|
||||
name = "fix-build-with-linux68.patch";
|
||||
url = "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/-/commit/3eb20df68a545d07b8501f13fa9d20e9c6f577ed.patch";
|
||||
hash = "sha256-Y1ktYaJTd9DtT/mwDqtjt/YasW9cVm0wI43wsQhl7Bg=";
|
||||
})
|
||||
];
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
@ -36,7 +45,7 @@ stdenv.mkDerivation rec {
|
|||
description = "Kernel module driver for DDC/CI monitors";
|
||||
homepage = "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ ];
|
||||
maintainers = with maintainers; [ kiike ];
|
||||
platforms = platforms.linux;
|
||||
broken = kernel.kernelOlder "5.1";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue