80f47974b7
svn path=/nixpkgs/trunk/; revision=33060
30 lines
637 B
Nix
30 lines
637 B
Nix
{ stdenv, edk2 }:
|
|
|
|
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;
|
|
|
|
patchPhase = ''
|
|
rm -fR Conf BaseTools EdkCompatibilityPkg
|
|
'';
|
|
|
|
meta = {
|
|
description = "Sample UEFI firmware for QEMU and KVM";
|
|
homepage = http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=OVMF;
|
|
license = "BSD";
|
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
|
platforms = ["x86_64-linux" "i686-linux"];
|
|
};
|
|
})
|