29 lines
887 B
Nix
29 lines
887 B
Nix
|
{ stdenv, fetchFromGitHub, kernel, kmod }:
|
||
|
|
||
|
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}
|
||
|
'';
|
||
|
|
||
|
meta = with stdenv.lib; {
|
||
|
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 ];
|
||
|
};
|
||
|
}
|