2016-03-05 10:51:25 +00:00
|
|
|
{ fetchFromGitHub, kernel, stdenv }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let pkgName = "mba6x_bl";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-10 18:18:39 +01:00
|
|
|
name = "${pkgName}-${version}";
|
|
|
|
version = "2016-04-22";
|
2016-03-05 10:51:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "patjak";
|
|
|
|
repo = pkgName;
|
2016-09-10 18:18:39 +01:00
|
|
|
rev = "d05c125efe182376ddab30d486994ec00e144650";
|
|
|
|
sha256 = "15h90z3ijq4lv37nmx70xqggcvn21vr7mki2psk1jyj88in3j3xn";
|
2016-03-05 10:51:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-03-29 11:26:32 +01:00
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
2016-03-05 10:51:25 +00:00
|
|
|
makeFlags = [
|
|
|
|
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
"INSTALL_MOD_PATH=$(out)"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "MacBook Air 6,1 and 6,2 (mid 2013) backlight driver";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/patjak/mba6x_bl;
|
2016-03-05 10:51:25 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.simonvandel ];
|
|
|
|
};
|
|
|
|
}
|