From ff8061e062ac6a12e947523358d1fedb26423853 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Tue, 18 Apr 2023 13:27:00 +0300 Subject: [PATCH] OVMF: fix build on x86_64-darwin --- pkgs/applications/virtualization/OVMF/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/virtualization/OVMF/default.nix b/pkgs/applications/virtualization/OVMF/default.nix index 7350765ab5d2..5499d7c2fd2a 100644 --- a/pkgs/applications/virtualization/OVMF/default.nix +++ b/pkgs/applications/virtualization/OVMF/default.nix @@ -48,6 +48,8 @@ edk2.mkDerivation projectDscPath (finalAttrs: { env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Qunused-arguments"; + env.PYTHON_COMMAND = "python3"; + postPatch = lib.optionalString csmSupport '' cp ${seabios}/Csm16.bin OvmfPkg/Csm/Csm16/Csm16.bin '';