18 lines
445 B
Nix
18 lines
445 B
Nix
{ 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
|
|
'';
|
|
in [{
|
|
inherit patch;
|
|
name = "Clear Linux* patchset";
|
|
}];
|
|
}
|