This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
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-2025-06-27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pobrn";
|
|
repo = "hid-ite8291r3";
|
|
rev = "961702de7d80609a2a21567e44dd2fe860b96c87";
|
|
hash = "sha256-egFX+Dm3KSEVAP/YIy1/KUypBHClZW8o49ua47o64N8=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|