From 904b79c69646703ed42094988d827e191fe709b7 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 11 Apr 2025 10:32:19 +0200 Subject: [PATCH] lib.systems: force qemuArch to "aarch64" on aarch64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qemu architecture names are fixed — we're using uname here just because it's more likely to be correct than CPU name (see e.g. POWER). This means that aarch64 is always called aarch64, even on Darwin where uname reports arm64. Fixes: 61582c704327 ("lib/systems: use Darwin architecture names for `config` and `uname`") --- lib/systems/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/systems/default.nix b/lib/systems/default.nix index 97f3d0dced17..a19972326195 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -305,6 +305,8 @@ let qemuArch = if final.isAarch32 then "arm" + else if final.isAarch64 then + "aarch64" else if final.isS390 && !final.isS390x then null else if final.isx86_64 then