2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, kernel, linuxHeaders}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tuxedo-keyboard-${kernel.version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "3.0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tuxedocomputers";
|
|
|
|
repo = "tuxedo-keyboard";
|
2021-05-20 23:08:51 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "123ady2bi2dwbajy3pgv10l3g2pyhi5k31c1ii0zcrvl2qqhndck";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = [ linuxHeaders ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
makeFlags = [ "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/lib/modules/${kernel.modDirVersion}"
|
|
|
|
mv src/tuxedo_keyboard.ko $out/lib/modules/${kernel.modDirVersion}
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Full color keyboard driver for tuxedo computers laptops";
|
|
|
|
homepage = "https://github.com/tuxedocomputers/tuxedo-keyboard/";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.blanky0230 ];
|
|
|
|
};
|
|
|
|
}
|