linux-hardened: Track extra version

Fixes #108707
This commit is contained in:
Tim Steinbach
2021-01-07 18:23:57 -05:00
committed by Tim Steinbach
parent 58514b3428
commit 4312cd74f1
4 changed files with 15 additions and 6 deletions
+2 -1
View File
@@ -41,7 +41,8 @@
hardened = let
mkPatch = kernelVersion: src: {
name = lib.removeSuffix ".patch" src.name;
patch = fetchurl src;
patch = fetchurl (lib.filterAttrs (k: v: k != "extra") src);
extra = src.extra;
};
patches = builtins.fromJSON (builtins.readFile ./hardened/patches.json);
in lib.mapAttrs mkPatch patches;