From bb475b01d290dae4f844f632603f4b0fbe276643 Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Mon, 8 Feb 2021 13:20:57 -0800 Subject: [PATCH] qemu: do not force x86_64 cpu on darwin This change produces the following warning: ``` ... configure: line 619: sysctl: command not found ``` It's benign and sysctl is only useful on MacOS X Leopard: * https://github.com/qemu/qemu/blob/v5.2.0/configure#L615-L621 Leopard is 13 years old and is not supported by Nix. The sysctl check is removed in qemu master branch already. Plus aarch64-darwin is coming in #105026, so there's no reason to force x86_64. --- pkgs/applications/virtualization/qemu/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix index d83c6d350e2..933d6c293ad 100644 --- a/pkgs/applications/virtualization/qemu/default.nix +++ b/pkgs/applications/virtualization/qemu/default.nix @@ -118,8 +118,6 @@ stdenv.mkDerivation rec { "--enable-tools" "--enable-guest-agent" ] - # disable sysctl check on darwin. - ++ optional stdenv.isDarwin "--cpu=x86_64" ++ optional numaSupport "--enable-numa" ++ optional seccompSupport "--enable-seccomp" ++ optional smartcardSupport "--enable-smartcard"