mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
kernel,
|
|
kernelModuleMakeFlags,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hid-ite8291r3";
|
|
version = "0-unstable-2026-07-31";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pobrn";
|
|
repo = "hid-ite8291r3";
|
|
rev = "1e1f01b5d8d0e45d70275a0dc29369002c39eb39";
|
|
hash = "sha256-EyBZ1qhg7ebVdkHtQD6iBQpRjPJbJLYxjfECx1EffK0=";
|
|
};
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
makeFlags = kernelModuleMakeFlags ++ [
|
|
"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
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [ "--version=branch" ];
|
|
};
|
|
|
|
meta = {
|
|
description = "Linux driver for the ITE 8291 RGB keyboard backlight controller";
|
|
homepage = "https://github.com/pobrn/hid-ite8291r3/";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ aacebedo ];
|
|
platforms = lib.platforms.linux;
|
|
broken = kernel.kernelOlder "5.9";
|
|
};
|
|
}
|