Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux-doc: adapt, fix build #309735

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions pkgs/os-specific/linux/kernel/htmldocs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,25 @@
, makeFontsConf
, perl
, python3
, sphinx
, which
, fetchpatch
}:

stdenv.mkDerivation {
pname = "linux-kernel-latest-htmldocs";

inherit (linux_latest) version src;

patches = [
# docutils 0.21 has removed nodes.reprunicode
# fixes the `AttributeError` thrown when building docs.
(fetchpatch {
Sigmanificient marked this conversation as resolved.
Show resolved Hide resolved
name = "docutils_fix.patch";
url = "https://lore.kernel.org/linux-doc/[email protected]/raw";
hash = "sha256-JuV1B/8iDysbH0tl+wr/rdXvoC34uUq25ejMFmD0hio=";
})
];

postPatch = ''
patchShebangs \
Documentation/sphinx/parse-headers.pl \
Expand Down Expand Up @@ -48,11 +58,11 @@ stdenv.mkDerivation {
cp -r Documentation/* $out/share/doc/linux-doc/
'';

meta = with lib; {
meta = {
description = "Linux kernel html documentation";
homepage = "https://www.kernel.org/doc/htmldocs/";
platforms = platforms.linux;
platforms = lib.platforms.linux;
inherit (linux_latest.meta) license;
maintainers = with maintainers; [ ];
maintainers = with lib.maintainers; [ sigmanificient ];
};
}