-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #309735 from Sigmanificient/linux-doc
linux-doc: adapt, fix build
- Loading branch information
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 { | ||
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 \ | ||
|
@@ -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 ]; | ||
}; | ||
} |