3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/tuxedo-keyboard/default.nix

31 lines
897 B
Nix
Raw Normal View History

2021-04-30 13:52:14 +01:00
{ lib, stdenv, fetchFromGitHub, kernel, linuxHeaders}:
2019-11-15 15:28:37 +00:00
stdenv.mkDerivation rec {
pname = "tuxedo-keyboard-${kernel.version}";
2021-04-30 13:52:14 +01:00
version = "3.0.5";
2019-11-15 15:28:37 +00:00
src = fetchFromGitHub {
owner = "tuxedocomputers";
repo = "tuxedo-keyboard";
2021-04-30 13:52:14 +01:00
rev = "v${version}";
sha256 = "123ady2bi2dwbajy3pgv10l3g2pyhi5k31c1ii0zcrvl2qqhndck";
2019-11-15 15:28:37 +00:00
};
2021-04-30 13:52:14 +01:00
buildInputs = [ linuxHeaders ];
2019-11-15 15:28:37 +00:00
makeFlags = [ "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ];
installPhase = ''
mkdir -p "$out/lib/modules/${kernel.modDirVersion}"
2019-11-21 22:10:41 +00:00
mv src/tuxedo_keyboard.ko $out/lib/modules/${kernel.modDirVersion}
2019-11-15 15:28:37 +00:00
'';
meta = with lib; {
2019-11-15 15:28:37 +00:00
description = "Full color keyboard driver for tuxedo computers laptops";
homepage = "https://github.com/tuxedocomputers/tuxedo-keyboard/";
2021-04-30 13:52:14 +01:00
license = licenses.gpl3Plus;
2019-11-21 22:10:41 +00:00
platforms = platforms.linux;
maintainers = [ maintainers.blanky0230 ];
2019-11-15 15:28:37 +00:00
};
}