2022-02-05 21:42:36 +02:00
|
|
|
{ pkgs, inputs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
boot.kernelPatches = let
|
2024-04-21 21:38:06 +03:00
|
|
|
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";
|
|
|
|
}];
|
|
|
|
}
|