about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/patches.nix
diff options
context:
space:
mode:
authorTim Steinbach <tim@nequissimus.com>2021-01-07 14:39:27 -0500
committerTim Steinbach <NeQuissimus@users.noreply.github.com>2021-01-07 18:23:57 -0500
commit4312cd74f13574cbe6a13c33064482964e4c5853 (patch)
tree10f823c498cdf176d8d1bffdaa992ab1eb095577 /pkgs/os-specific/linux/kernel/patches.nix
parent58514b34283712c751278f6fd133f88ffced7135 (diff)
linux-hardened: Track extra version
Fixes #108707
Diffstat (limited to 'pkgs/os-specific/linux/kernel/patches.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/patches.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/patches.nix b/pkgs/os-specific/linux/kernel/patches.nix
index b0eb2be2a4c93..a1a6900071047 100644
--- a/pkgs/os-specific/linux/kernel/patches.nix
+++ b/pkgs/os-specific/linux/kernel/patches.nix
@@ -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;