From aa6d3e68171d35e68d6aa7f9987f8aa651bf8d66 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 30 Jun 2022 08:48:25 +0000 Subject: [PATCH] top-level/linux-kernels.nix: add vendor kernels note This codifies existing practice of avoiding adding new vendor kernels to Nixpkgs. Hopefully I've put this comment at the place in the file somebody hoping to add a new vendor kernel would be most likely to look. --- pkgs/top-level/linux-kernels.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/top-level/linux-kernels.nix b/pkgs/top-level/linux-kernels.nix index 0d2d7cc835c0..a7376042a6e5 100644 --- a/pkgs/top-level/linux-kernels.nix +++ b/pkgs/top-level/linux-kernels.nix @@ -57,6 +57,10 @@ in { kernels = recurseIntoAttrs (lib.makeExtensible (self: with self; let callPackage = newScope self; in { + # NOTE: PLEASE DO NOT ADD NEW VENDOR KERNELS TO NIXPKGS. + # New vendor kernels should go to nixos-hardware instead. + # e.g. https://github.com/NixOS/nixos-hardware/tree/master/microsoft/surface/kernel + linux_mptcp_95 = callPackage ../os-specific/linux/kernel/linux-mptcp-95.nix { kernelPatches = linux_4_19.kernelPatches; };