From ed38ae461a1a222fcee3a6ee61d50c97cb996b58 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sat, 27 May 2023 11:11:48 -0600 Subject: [PATCH] qemu: Skip doc-related sphinx dependencies sphinx when docs are disabled --- pkgs/applications/virtualization/qemu/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix index 089bd299c781..f478d50de16e 100644 --- a/pkgs/applications/virtualization/qemu/default.nix +++ b/pkgs/applications/virtualization/qemu/default.nix @@ -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 ];