summaryrefslogtreecommitdiffstats
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2021-03-21 07:02:40 +0000
committerGitHub <noreply@github.com>2021-03-21 07:02:40 +0000
commit78a31c1d1dea2035cdbd06ed3333856e98171cef (patch)
tree0eb4eb2b03b590d8f5773dbceb920f9b5d770d69 /pkgs/os-specific
parent6cdd34382a04c3af313beda0091781270513d781 (diff)
parent05af647258bfc861ab28a78b62950a421b6fba70 (diff)
Merge pull request #113093 from hlolli/mbp2018-bridge-drv
mbp2018-bridge-drv: init at 0.01
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/mbp-modules/mbp2018-bridge-drv/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/mbp-modules/mbp2018-bridge-drv/default.nix b/pkgs/os-specific/linux/mbp-modules/mbp2018-bridge-drv/default.nix
new file mode 100644
index 000000000000..258f4296e2e0
--- /dev/null
+++ b/pkgs/os-specific/linux/mbp-modules/mbp2018-bridge-drv/default.nix
@@ -0,0 +1,34 @@
+{ lib, stdenv, kernel, fetchFromGitHub, }:
+
+stdenv.mkDerivation rec {
+ pname = "mbp2018-bridge-drv";
+ version = "0.01";
+
+ src = fetchFromGitHub {
+ owner = "MCMrARM";
+ repo = "mbp2018-bridge-drv";
+ rev = "${version}";
+ sha256 = "0ac2l51ybfrvg8m36x67rsvgjqs1vwp7c89ssvbjkrcq3y4qdb53";
+ };
+
+ buildPhase = ''
+ make -C ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build \
+ -j$NIX_BUILD_CORES M=$(pwd) modules
+ '';
+
+ installPhase = ''
+ make -C ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build \
+ INSTALL_MOD_PATH=$out M=$(pwd) modules_install
+ '';
+
+ meta = with lib; {
+ description = "A driver for MacBook models 2018 and newer, which makes the keyboard, mouse and audio output work.";
+ longDescription = ''
+ A driver for MacBook models 2018 and newer, implementing the VHCI (required for mouse/keyboard/etc.) and audio functionality.
+ '';
+ homepage = "https://github.com/MCMrARM/mbp2018-bridge-drv";
+ license = lib.licenses.gpl2Only;
+ platforms = platforms.linux;
+ maintainers = [ lib.maintainers.hlolli ];
+ };
+}