Unverified Commit 7ecd0f55 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

linux-manual: Handle scripts/kernel-doc.py (#429461)

parents 528b783f 40d78d58
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -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
  '';