From 388c7acd20362047809d3ae55407a75e6f7d3a33 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Fri, 29 Sep 2023 20:03:13 +0200 Subject: [PATCH] OVMFFull: fix build on non-x86 platforms e.g. aarch64 `csmSupport` requires SeaBIOS, which is arguably x86 (i686 and x86_64) only. --- pkgs/top-level/all-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2b20db5644b5..4b66f6a6cb8d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27216,7 +27216,9 @@ with pkgs; OVMF = callPackage ../applications/virtualization/OVMF { }; OVMFFull = callPackage ../applications/virtualization/OVMF { secureBoot = true; - csmSupport = true; + # CSM support is a BIOS emulation mechanism, + # SeaBIOS is only available on x86. + csmSupport = stdenv.hostPlatform.isx86; httpSupport = true; tpmSupport = true; };