2022-05-19 17:40:34 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, graphviz
|
|
|
|
, imagemagick
|
|
|
|
, linux_latest
|
|
|
|
, makeFontsConf
|
|
|
|
, perl
|
|
|
|
, python3
|
|
|
|
, sphinx
|
|
|
|
, which
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "linux-kernel-latest-htmldocs";
|
|
|
|
|
|
|
|
inherit (linux_latest) version src;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs \
|
|
|
|
Documentation/sphinx/parse-headers.pl \
|
|
|
|
scripts/{get_abi.pl,get_feat.pl,kernel-doc,sphinx-pre-install}
|
|
|
|
'';
|
|
|
|
|
|
|
|
FONTCONFIG_FILE = makeFontsConf {
|
|
|
|
fontDirectories = [ ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
graphviz
|
|
|
|
imagemagick
|
|
|
|
perl
|
2023-02-25 20:13:52 +00:00
|
|
|
python3.pkgs.sphinx
|
|
|
|
python3.pkgs.sphinx-rtd-theme
|
2022-05-19 17:40:34 +00:00
|
|
|
which
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export XDG_CACHE_HOME="$(mktemp -d)"
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [ "htmldocs" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/doc
|
|
|
|
mv Documentation/output $out/share/doc/linux-doc
|
|
|
|
cp -r Documentation/* $out/share/doc/linux-doc/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Linux kernel html documentation";
|
|
|
|
homepage = "https://www.kernel.org/doc/htmldocs/";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
inherit (linux_latest.meta) license;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|