config/hosts/jericho/extras/kernel-clr.nix

19 lines
445 B
Nix
Raw Normal View History

2022-02-05 21:42:36 +02:00
{ pkgs, inputs, ... }:
{
boot.kernelPatches = let
patch = pkgs.runCommand "kernel-clr-combined.patch" {
nativeBuildInputs = [ pkgs.gnugrep ];
} ''
cd ${inputs.kernel-clr}
grep -o '^%patch[0-9]* ' linux.spec \
| grep -o '[0-9]*' \
| xargs -I '{}' grep '^Patch{}:' linux.spec \
| cut -d" " -f2- | xargs cat >> $out
'';
2022-02-05 21:42:36 +02:00
in [{
inherit patch;
name = "Clear Linux* patchset";
}];
}