clear linux patches testing

This commit is contained in:
Gerg-L 2024-04-25 22:59:36 -04:00
parent b4cd13418b
commit 354eecbdfb
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
2 changed files with 19 additions and 0 deletions

View file

@ -165,6 +165,7 @@
};
};
boot = {
kernelPatches = [ self.packages.clear-patches ];
kernelModules = [ "amdgpu" ];
initrd = {
availableKernelModules = [

View file

@ -0,0 +1,18 @@
{ runCommand, fetchFromGitHub }:
runCommand "kernel-clr-combined.patch"
{
src = fetchFromGitHub {
owner = "clearlinux-pkgs";
repo = "linux";
rev = "65f5cc7a18b6eb108e2b458c5c9d244e2aa8b587";
hash = "sha256-X8H4j7GpMKVdrwSQxbzUVt7m5mzP/53Nx67YG914Zv0=";
};
}
''
cd "$src"
grep -o '^%patch[0-9]*' linux.spec \
| grep -o '[0-9]*' \
| xargs -I '{}' grep '^Patch{}:' linux.spec \
| cut -d" " -f2- | xargs cat >> $out
''