mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
79768df602
The build used to fail with Found duplicated packages in closure for dependency 'docutils': docutils 0.19 (/nix/store/y1ifaaf1pfh8pz4qfqvc5gdk3a7s1563-python3.10-docutils-0.19/lib/python3.10/site-packages) docutils 0.16 (/nix/store/f2rd8fjdjzy0kpqd2x0gw5lwbxwmzzm6-python3.10-docutils-0.16/lib/python3.10/site-packages)
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{ 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
|
|
python3.pkgs.sphinx
|
|
python3.pkgs.sphinx-rtd-theme
|
|
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 ];
|
|
};
|
|
}
|