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/mbp-modules/mbp2018-bridge-drv/default.nix
Jörg Thalheim e661b70903
mbp2018-bridge-drv: fix source
the 0.01 tag was deleted
2021-05-11 10:08:53 +02:00

36 lines
1.1 KiB
Nix

{ lib, stdenv, kernel, fetchFromGitHub, }:
stdenv.mkDerivation rec {
pname = "mbp2018-bridge-drv";
version = "2020-01-31";
src = fetchFromGitHub {
owner = "MCMrARM";
repo = "mbp2018-bridge-drv";
rev = "b43fcc069da73e051072fde24af4014c9c487286";
sha256 = "sha256-o6yGiR+Y5SnX1johdi7fQWP5ts7HdDMqeju75UOhgik=";
};
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 ];
broken = kernel.kernelOlder "5.4";
};
}