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