2016-03-05 11:51:25 +01:00
|
|
|
{ fetchFromGitHub, kernel, stdenv }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let pkgName = "mba6x_bl";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-10 19:18:39 +02:00
|
|
|
name = "${pkgName}-${version}";
|
|
|
|
version = "2016-04-22";
|
2016-03-05 11:51:25 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "patjak";
|
|
|
|
repo = pkgName;
|
2016-09-10 19:18:39 +02:00
|
|
|
rev = "d05c125efe182376ddab30d486994ec00e144650";
|
|
|
|
sha256 = "15h90z3ijq4lv37nmx70xqggcvn21vr7mki2psk1jyj88in3j3xn";
|
2016-03-05 11:51:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-03-29 12:26:32 +02:00
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
2016-03-05 11:51:25 +01: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";
|
|
|
|
homepage = "https://github.com/patjak/mba6x_bl";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.simonvandel ];
|
|
|
|
};
|
|
|
|
}
|