linux-manual: Handle scripts/kernel-doc.py

Upstream switched the script to Python in 6.16, so handle that.
This commit is contained in:
dramforever 2025-07-30 04:59:07 +08:00
parent 8f2561f533
commit 40d78d58e3

View File

@ -3,6 +3,7 @@
stdenv,
linuxPackages_latest,
perl,
python3,
man,
}:
@ -10,7 +11,10 @@ stdenv.mkDerivation {
pname = "linux-manual";
inherit (linuxPackages_latest.kernel) version src;
nativeBuildInputs = [ perl ];
nativeBuildInputs = [
perl
python3
];
nativeInstallCheckInputs = [ man ];
dontConfigure = true;
@ -18,8 +22,11 @@ stdenv.mkDerivation {
doInstallCheck = true;
postPatch = ''
# Use scripts/kernel-doc.py here, not scripts/kernel-doc because
# patchShebangs skips symlinks
patchShebangs --build \
scripts/kernel-doc \
scripts/kernel-doc.py \
scripts/split-man.pl
'';