1 { lib, stdenv, kernel, fetchFromGitHub, }:
3 stdenv.mkDerivation rec {
4 pname = "mbp2018-bridge-drv";
5 version = "2020-01-31";
7 src = fetchFromGitHub {
9 repo = "mbp2018-bridge-drv";
10 rev = "b43fcc069da73e051072fde24af4014c9c487286";
11 sha256 = "sha256-o6yGiR+Y5SnX1johdi7fQWP5ts7HdDMqeju75UOhgik=";
14 nativeBuildInputs = kernel.moduleBuildDependencies;
15 makeFlags = kernel.makeFlags;
18 make -C ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build \
19 -j$NIX_BUILD_CORES M=$(pwd) modules $makeFlags
23 make -C ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build \
24 INSTALL_MOD_PATH=$out M=$(pwd) modules_install $makeFlags
28 description = "Driver for MacBook models 2018 and newer, which makes the keyboard, mouse and audio output work";
30 A driver for MacBook models 2018 and newer, implementing the VHCI (required for mouse/keyboard/etc.) and audio functionality.
32 homepage = "https://github.com/MCMrARM/mbp2018-bridge-drv";
33 license = lib.licenses.gpl2Only;
34 platforms = platforms.linux;
35 maintainers = [ lib.maintainers.hlolli ];
36 broken = kernel.kernelOlder "5.4";