qemu: Support disabling tools

Not needed for a minimal qemu-user-static build.
This commit is contained in:
Zhaofeng Li 2023-05-27 11:11:48 -06:00 committed by Alyssa Ross
parent a94afe42c0
commit 12428702eb

View File

@ -33,6 +33,7 @@
, capstoneSupport ? !toolsOnly, capstone
, pluginsSupport ? !stdenv.hostPlatform.isStatic
, enableDocs ? true
, enableTools ? true
, hostCpuOnly ? false
, hostCpuTargets ? (if toolsOnly
then [ ]
@ -160,7 +161,7 @@ stdenv.mkDerivation (finalAttrs: {
configureFlags = [
"--disable-strip" # We'll strip ourselves after separating debug info.
(lib.enableFeature enableDocs "docs")
"--enable-tools"
(lib.enableFeature enableTools "tools")
"--localstatedir=/var"
"--sysconfdir=/etc"
"--cross-prefix=${stdenv.cc.targetPrefix}"