nixpkgs/pkgs/os-specific/linux/tuxedo-keyboard/default.nix
Florian Warzecha cbd77f4e74
linuxPackages.tuxedo-keyboard: 3.0.9 -> 3.1.1
Expose the uniwill-wmi module in addition to the already exported modules.

That module is required to run the Tuxedo Control Center
and as a dependency of the tuxedo-keyboard module.
2022-12-09 18:22:03 +01:00

41 lines
1.2 KiB
Nix

{ lib, stdenv, fetchFromGitHub, kernel, linuxHeaders }:
stdenv.mkDerivation rec {
pname = "tuxedo-keyboard-${kernel.version}";
version = "3.1.1";
src = fetchFromGitHub {
owner = "tuxedocomputers";
repo = "tuxedo-keyboard";
rev = "v${version}";
sha256 = "+59/5vfwx9fys7Q63SahVPS/ckvwkr4w6T37UqAnwZ4=";
};
buildInputs = [ linuxHeaders ];
makeFlags = [ "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ];
installPhase = ''
mkdir -p "$out/lib/modules/${kernel.modDirVersion}"
for module in clevo_acpi.ko clevo_wmi.ko tuxedo_keyboard.ko tuxedo_io/tuxedo_io.ko uniwill_wmi.ko; do
mv src/$module $out/lib/modules/${kernel.modDirVersion}
done
'';
meta = with lib; {
description = "Keyboard and hardware I/O driver for TUXEDO Computers laptops";
longDescription = ''
This driver provides support for Fn keys, brightness/color/mode for most TUXEDO
keyboards (except white backlight-only models).
Can be used with the "hardware.tuxedo-keyboard" NixOS module.
'';
homepage = "https://github.com/tuxedocomputers/tuxedo-keyboard/";
license = licenses.gpl3Plus;
platforms = platforms.linux;
broken = stdenv.isAarch64;
maintainers = [ maintainers.blanky0230 ];
};
}