1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/os-specific/linux/tuxedo-keyboard/default.nix

29 lines
887 B
Nix
Raw Normal View History

2019-11-15 15:28:37 +00:00
{ 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}"
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
'';
2019-11-21 22:10:41 +00:00
meta = with stdenv.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/";
2019-11-21 22:10:41 +00:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.blanky0230 ];
2019-11-15 15:28:37 +00:00
};
}