From e6c5b0a48b4ab3ecd5db161222de33eef2352b39 Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Sun, 28 Jun 2026 21:08:25 -0700 Subject: [PATCH] qemu: depend on apple-sdk_15 Without this the following error occurs starting with qemu 11: ``` ERROR:../target/arm/hvf/sysreg.c.inc:149:hvf_arch_init_vcpu: assertion failed: (HV_SYS_REG_SMCR_EL1 == KVMID_TO_HVF(KVMID_AA64_SYS_REG64(3, 0, 1, 2, 6))) ``` --- pkgs/by-name/qe/qemu/package.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/qe/qemu/package.nix b/pkgs/by-name/qe/qemu/package.nix index 34d22a285da4..5bd6c6e0f8c7 100644 --- a/pkgs/by-name/qe/qemu/package.nix +++ b/pkgs/by-name/qe/qemu/package.nix @@ -32,6 +32,7 @@ libslirp, libcbor, darwin, + apple-sdk_15, guestAgentSupport ? (with stdenv.hostPlatform; isLinux || isNetBSD || isOpenBSD || isSunOS || isWindows) && !minimal, numaSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32 && !minimal, @@ -251,7 +252,8 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optionals canokeySupport [ canokey-qemu ] ++ lib.optionals u2fEmuSupport [ libu2f-emu ] ++ lib.optionals capstoneSupport [ capstone ] - ++ lib.optionals valgrindSupport [ valgrind-light ]; + ++ lib.optionals valgrindSupport [ valgrind-light ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_15 ]; dontUseMesonConfigure = true; # meson's configurePhase isn't compatible with qemu build dontAddStaticConfigureFlags = true;