diff --git a/pkgs/applications/virtualization/OVMF/default.nix b/pkgs/applications/virtualization/OVMF/default.nix index a22d9737083e..4b6f77f5f8dd 100644 --- a/pkgs/applications/virtualization/OVMF/default.nix +++ b/pkgs/applications/virtualization/OVMF/default.nix @@ -1,6 +1,17 @@ { stdenv, edk2 }: -stdenv.mkDerivation (edk2.setup "OvmfPkg/OvmfPkgX64.dsc" { +let + + targetArch = if stdenv.isi686 then + "Ia32" + else if stdenv.isx86_64 then + "X64" + else + throw "Unsupported architecture"; + +in + +stdenv.mkDerivation (edk2.setup "OvmfPkg/OvmfPkg${targetArch}.dsc" { name = "OVMF-2012-03-13"; src = edk2.src;