summary refs log tree commit diff
path: root/pkgs/os-specific/linux/tuxedo-keyboard
diff options
context:
space:
mode:
authorblanky0230 <blanky0230@gmail.com>2019-11-21 23:10:41 +0100
committerblanky0230 <blanky0230@gmail.com>2020-01-26 09:24:09 +0100
commitf2fea8894dae30ae1cc46c70302a9cc7d54a6ea4 (patch)
treeb2d01434e5d53f1306ae835b2de3bca227cb5352 /pkgs/os-specific/linux/tuxedo-keyboard
parent4cf316f5bd952507e6a7159e4a7b245618aedb5e (diff)
downloadnixpkgs-f2fea8894dae30ae1cc46c70302a9cc7d54a6ea4.tar
nixpkgs-f2fea8894dae30ae1cc46c70302a9cc7d54a6ea4.tar.gz
nixpkgs-f2fea8894dae30ae1cc46c70302a9cc7d54a6ea4.tar.bz2
nixpkgs-f2fea8894dae30ae1cc46c70302a9cc7d54a6ea4.tar.lz
nixpkgs-f2fea8894dae30ae1cc46c70302a9cc7d54a6ea4.tar.xz
nixpkgs-f2fea8894dae30ae1cc46c70302a9cc7d54a6ea4.tar.zst
nixpkgs-f2fea8894dae30ae1cc46c70302a9cc7d54a6ea4.zip
nixos/tuxedo-keyboard: init module.
Diffstat (limited to 'pkgs/os-specific/linux/tuxedo-keyboard')
-rw-r--r--pkgs/os-specific/linux/tuxedo-keyboard/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/tuxedo-keyboard/default.nix b/pkgs/os-specific/linux/tuxedo-keyboard/default.nix
new file mode 100644
index 00000000000..b67bf2d3dab
--- /dev/null
+++ b/pkgs/os-specific/linux/tuxedo-keyboard/default.nix
@@ -0,0 +1,28 @@
+{ 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 ];
+  };
+}