From abc10b47158c2be67aafb4f29f259665c7b94a8e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 4 Jul 2013 18:01:11 +0200 Subject: [PATCH] qemu: Allow building only the x86 emulator --- pkgs/applications/virtualization/qemu/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix index 76783957d57b..91050619e437 100644 --- a/pkgs/applications/virtualization/qemu/default.nix +++ b/pkgs/applications/virtualization/qemu/default.nix @@ -3,6 +3,7 @@ , sdlSupport ? true, SDL , vncSupport ? true, libjpeg, libpng , spiceSupport ? false, spice, spice_protocol +, x86Only ? false }: stdenv.mkDerivation rec { @@ -27,7 +28,8 @@ stdenv.mkDerivation rec { [ "--audio-drv-list=alsa" "--smbd=smbd" # use `smbd' from $PATH ] - ++ stdenv.lib.optional spiceSupport "--enable-spice"; + ++ stdenv.lib.optional spiceSupport "--enable-spice" + ++ stdenv.lib.optional x86Only "--target-list=i386-softmmu,x86_64-softmmu"; meta = { homepage = http://www.qemu.org/;