nixpkgs-suyu/pkgs/os-specific/linux/tuxedo-keyboard/default.nix

35 lines
1,023 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, kernel, linuxHeaders }:
2019-11-15 16:28:37 +01:00
stdenv.mkDerivation rec {
pname = "tuxedo-keyboard-${kernel.version}";
version = "3.0.8";
2019-11-15 16:28:37 +01:00
src = fetchFromGitHub {
owner = "tuxedocomputers";
repo = "tuxedo-keyboard";
2021-04-30 14:52:14 +02:00
rev = "v${version}";
sha256 = "1rv3ns4n61v18cpnp36zi47jpnqhj410yzi8b307ghiyriapbijv";
2019-11-15 16:28:37 +01:00
};
2021-04-30 14:52:14 +02:00
buildInputs = [ linuxHeaders ];
2019-11-15 16:28:37 +01:00
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; do
mv src/$module $out/lib/modules/${kernel.modDirVersion}
done
2019-11-15 16:28:37 +01:00
'';
meta = with lib; {
2019-11-15 16:28:37 +01:00
description = "Full color keyboard driver for tuxedo computers laptops";
homepage = "https://github.com/tuxedocomputers/tuxedo-keyboard/";
2021-04-30 14:52:14 +02:00
license = licenses.gpl3Plus;
2019-11-21 23:10:41 +01:00
platforms = platforms.linux;
broken = stdenv.isAarch64;
2019-11-21 23:10:41 +01:00
maintainers = [ maintainers.blanky0230 ];
2019-11-15 16:28:37 +01:00
};
}