2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, kernel, kmod }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tuxedo-keyboard-${kernel.version}";
|
|
|
|
version = "2019-08-26";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tuxedocomputers";
|
|
|
|
repo = "tuxedo-keyboard";
|
|
|
|
rev = "d65e76e84cfd8169591fc2a0a7c9219fa19da1b5";
|
|
|
|
sha256 = "1s48qpwybwh5pwqas2d1v2a7x4r97sm4hr9i4902r1d7h384bv17";
|
|
|
|
};
|
|
|
|
|
|
|
|
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/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.blanky0230 ];
|
|
|
|
};
|
|
|
|
}
|