Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- overlays ---
- {
- nixpkgs.overlays =
- [
- (import ./pkgs/applespi)
- (import ./pkgs/linux)
- ];
- }
- --- pkgs/applespi/default.nix ---
- self: super:
- {
- applespi = super.stdenv.mkDerivation rec {
- name = "applespi-${version}-${super.linuxPackages_4_17.kernel.version}";
- version = "2018-04-21";
- src = super.fetchFromGitHub {
- owner = "roadrunner2";
- repo = "macbook12-spi-driver";
- rev = "cc3a895419398cc767b9567e96dd0f488142e46b";
- sha256 = "09lhl8nc1zrgkr1fjmxigwph0khnl1wbsqiha977ydgmbkk5sk1w";
- };
- hardeningDisable = [ "pic" ];
- nativeBuildInputs = [ super.linuxPackages_4_17.kernel.moduleBuildDependencies ];
- makeFlags = [
- "KBASE=${super.linuxPackages_4_17.kernel.dev}/lib/modules/${super.linuxPackages_4_17.kernel.modDirVersion}"
- ];
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement