use pre-patched kernel source instead of patching ourselves

nix strips FHS before patching, causing the patch for some versions to fail
This commit is contained in:
LavaDesu 2021-06-28 10:53:51 +07:00
parent df5bfd14d6
commit 264b62ca6a
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 8 additions and 22 deletions

View file

@ -42,8 +42,6 @@
, ...
} @ args:
let
tkg = "2da317c20ed6f70085b195639b9aad2cacf31ab5";
sources = import ./sources.nix { inherit fetchFromGitHub lib version; };
boolToKernel = bool: with lib.kernel; if bool then yes else no;
@ -325,11 +323,6 @@ in buildLinux(args // rec {
} // flattenedConfig
// extraConfig);
kernelPatches = #args.kernelPatches
[{
name = "patch-${version}";
patch = sources.patchSrc;
}]
++ tkgPatches;
kernelPatches = tkgPatches;
src = sources.kernelSrc;
} // (args.argsOverride or {}))