qemu: Skip doc-related sphinx dependencies sphinx when docs are disabled

This commit is contained in:
Zhaofeng Li 2023-05-27 11:11:48 -06:00 committed by Alyssa Ross
parent e8c75c234e
commit ed38ae461a

View File

@ -70,9 +70,10 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config flex bison dtc meson ninja
# Don't change this to python3 and python3.pkgs.*, breaks cross-compilation
python3Packages.python python3Packages.sphinx python3Packages.sphinx-rtd-theme
python3Packages.python
]
++ lib.optionals gtkSupport [ wrapGAppsHook3 ]
++ lib.optionals enableDocs [ python3Packages.sphinx python3Packages.sphinx-rtd-theme ]
++ lib.optionals hexagonSupport [ glib ]
++ lib.optionals stdenv.isDarwin [ sigtool ];