depot/third_party/nixpkgs/pkgs/os-specific/linux/mba6x_bl/default.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

31 lines
849 B
Nix

{ fetchFromGitHub, kernel, lib, stdenv }:
stdenv.mkDerivation {
pname = "mba6x_bl";
version = "unstable-2017-12-30";
src = fetchFromGitHub {
owner = "patjak";
repo = "mba6x_bl";
rev = "639719f516b664051929c2c0c1140ea4bf30ce81";
sha256 = "sha256-QwxBpNa5FitKO+2ne54IIcRgwVYeNSQWI4f2hPPB8ls=";
};
enableParallelBuilding = true;
hardeningDisable = [ "pic" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernel.makeFlags ++ [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"INSTALL_MOD_PATH=$(out)"
];
meta = with lib; {
description = "MacBook Air 6,1 and 6,2 (mid 2013) backlight driver";
homepage = "https://github.com/patjak/mba6x_bl";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = [ maintainers.simonvandel ];
};
}