mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
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:
parent
7f8086c7a1
commit
79768df602
@ -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
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user