OVMF: Actually support i686

svn path=/nixpkgs/trunk/; revision=33060
This commit is contained in:
Shea Levy 2012-03-14 07:29:11 +00:00
parent 6cf8e4f815
commit 80f47974b7

View File

@ -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;