linux-doc: remove Python overrides

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)
This commit is contained in:
Robert Schütz 2023-02-25 12:13:52 -08:00 committed by Robert Schütz
parent 7f8086c7a1
commit 79768df602

View File

@ -10,35 +10,6 @@
, which
}:
let
py = python3.override {
packageOverrides = final: prev: rec {
docutils_old = prev.docutils.overridePythonAttrs (oldAttrs: rec {
version = "0.16";
src = final.fetchPypi {
pname = "docutils";
inherit version;
sha256 = "sha256-wt46YOnn0Hvia38rAMoDCcIH4GwQD5zCqUkx/HWkePw=";
};
});
sphinx = (prev.sphinx.override rec {
alabaster = prev.alabaster.override { inherit pygments; };
docutils = docutils_old;
pygments = prev.pygments.override { docutils = docutils_old; };
}).overridePythonAttrs {
# fails due to duplicated packages
doCheck = false;
};
sphinx-rtd-theme = prev.sphinx-rtd-theme.override {
inherit sphinx;
docutils = docutils_old;
};
};
};
in
stdenv.mkDerivation {
pname = "linux-kernel-latest-htmldocs";
@ -58,8 +29,8 @@ stdenv.mkDerivation {
graphviz
imagemagick
perl
py.pkgs.sphinx
py.pkgs.sphinx-rtd-theme
python3.pkgs.sphinx
python3.pkgs.sphinx-rtd-theme
which
];