linuxHeaders: add updateScript

This package doesn't seem to be updated consistently so adding an updateScript so the bot will create PRs when linux_latest is bumped to a new branch version.
This commit is contained in:
zowoq
2026-05-09 12:43:45 +10:00
parent 7cf10713e6
commit e1210e0a45
@@ -9,6 +9,8 @@
flex,
rsync,
writeTextFile,
nix-update-script,
linux_latest,
}:
let
@@ -42,6 +44,7 @@ let
src,
version,
patches ? [ ],
passthru ? { },
}:
stdenvNoCC.mkDerivation {
inherit src;
@@ -139,6 +142,8 @@ let
echo "${version}-default" > $out/include/config/kernel.release
'';
inherit passthru;
meta = {
description = "Header files and scripts for Linux kernel";
license = lib.licenses.gpl2Only;
@@ -163,5 +168,11 @@ in
patches = [
./no-relocs.patch # for building x86 kernel headers on non-ELF platforms
];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"${linux_latest.meta.branch}"
];
};
};
}