2014-12-11 05:46:05 +00:00
|
|
|
{ stdenv, edk2, nasm, iasl }:
|
2012-03-14 06:57:58 +00:00
|
|
|
|
2012-03-14 07:29:11 +00:00
|
|
|
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" {
|
2014-12-11 05:46:05 +00:00
|
|
|
name = "OVMF-2014-12-10";
|
2012-03-14 06:57:58 +00:00
|
|
|
|
2014-12-11 05:46:05 +00:00
|
|
|
buildInputs = [nasm iasl];
|
2012-03-14 22:43:07 +00:00
|
|
|
unpackPhase = ''
|
|
|
|
for file in \
|
|
|
|
"${edk2.src}"/{OvmfPkg,UefiCpuPkg,MdeModulePkg,IntelFrameworkModulePkg,PcAtChipsetPkg,FatBinPkg,EdkShellBinPkg,MdePkg,ShellPkg,OptionRomPkg,IntelFrameworkPkg};
|
|
|
|
do
|
|
|
|
ln -sv "$file" .
|
|
|
|
done
|
2012-03-14 06:57:58 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Sample UEFI firmware for QEMU and KVM";
|
|
|
|
homepage = http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=OVMF;
|
2014-12-20 23:00:35 +00:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
2012-03-14 06:57:58 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
|
|
|
platforms = ["x86_64-linux" "i686-linux"];
|
|
|
|
};
|
|
|
|
})
|