diff --git a/custom/modules/kernel.nix b/custom/modules/kernel.nix index c98c319..85ab741 100644 --- a/custom/modules/kernel.nix +++ b/custom/modules/kernel.nix @@ -17,6 +17,8 @@ let makefile = builtins.readFile "${kernel-src}/Makefile"; lines = lib.splitString "\n" makefile; + normalizeKernelPatch = p: p // { patch = p.patch or null; }; + kernelPatches' = map normalizeKernelPatch kernelPatches; get = name: @@ -118,7 +120,8 @@ in buildLinux ( args // { - inherit kernelPatches extraConfig; + kernelPatches = kernelPatches'; + inherit extraConfig; version = kver; modDirVersion = kver;