From e1210e0a45dd4ed8fb7c3af2f351843ce6a87140 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Fri, 8 May 2026 14:57:44 +1000 Subject: [PATCH] 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. --- pkgs/os-specific/linux/kernel-headers/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/os-specific/linux/kernel-headers/default.nix b/pkgs/os-specific/linux/kernel-headers/default.nix index 7a7531738fae..3bee4e848c76 100644 --- a/pkgs/os-specific/linux/kernel-headers/default.nix +++ b/pkgs/os-specific/linux/kernel-headers/default.nix @@ -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}" + ]; + }; }; }