Advertisement
Guest User

Untitled

a guest
Aug 25th, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. --- overlays ---
  2. {
  3. nixpkgs.overlays =
  4. [
  5. (import ./pkgs/applespi)
  6. (import ./pkgs/linux)
  7. ];
  8. }
  9.  
  10.  
  11. --- pkgs/applespi/default.nix ---
  12.  
  13. self: super:
  14.  
  15. {
  16. applespi = super.stdenv.mkDerivation rec {
  17. name = "applespi-${version}-${super.linuxPackages_4_17.kernel.version}";
  18. version = "2018-04-21";
  19.  
  20. src = super.fetchFromGitHub {
  21. owner = "roadrunner2";
  22. repo = "macbook12-spi-driver";
  23. rev = "cc3a895419398cc767b9567e96dd0f488142e46b";
  24. sha256 = "09lhl8nc1zrgkr1fjmxigwph0khnl1wbsqiha977ydgmbkk5sk1w";
  25. };
  26.  
  27. hardeningDisable = [ "pic" ];
  28.  
  29. nativeBuildInputs = [ super.linuxPackages_4_17.kernel.moduleBuildDependencies ];
  30.  
  31. makeFlags = [
  32. "KBASE=${super.linuxPackages_4_17.kernel.dev}/lib/modules/${super.linuxPackages_4_17.kernel.modDirVersion}"
  33. ];
  34. };
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement