hid-ite8291r3: init at unstable-2022-06-01
This commit is contained in:
parent
749a80ebd5
commit
b0873c032d
2 changed files with 37 additions and 0 deletions
35
pkgs/os-specific/linux/hid-ite8291r3/default.nix
Normal file
35
pkgs/os-specific/linux/hid-ite8291r3/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, fetchFromGitHub, kernel }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hid-ite8291r3";
|
||||
version = "unstable-2022-06-01";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pobrn";
|
||||
repo = "hid-ite8291r3";
|
||||
rev = "48e04cb96517f8574225ebabb286775feb942ef5";
|
||||
hash = "sha256-/69vvVbAVULDW8rwDYSj5706vrqJ6t4s/T6s3vmG9wk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
makeFlags = kernel.makeFlags ++ [
|
||||
"VERSION=${version}"
|
||||
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D hid-ite8291r3.ko -t $out/lib/modules/${kernel.modDirVersion}/extra
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Linux driver for the ITE 8291 RGB keyboard backlight controller";
|
||||
homepage = "https://github.com/pobrn/hid-ite8291r3/";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ aacebedo ];
|
||||
platforms = platforms.linux;
|
||||
broken = kernel.kernelOlder "5.9";
|
||||
};
|
||||
}
|
|
@ -499,6 +499,8 @@ in {
|
|||
|
||||
qc71_laptop = callPackage ../os-specific/linux/qc71_laptop { };
|
||||
|
||||
hid-ite8291r3 = callPackage ../os-specific/linux/hid-ite8291r3 { };
|
||||
|
||||
} // lib.optionalAttrs config.allowAliases {
|
||||
ati_drivers_x11 = throw "ati drivers are no longer supported by any kernel >=4.1"; # added 2021-05-18;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue