mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
72b5403ee8
Signed-off-by: Shea Levy <shea@shealevy.com>
33 lines
794 B
Nix
33 lines
794 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-2014-02-01";
|
|
|
|
unpackPhase = ''
|
|
for file in \
|
|
"${edk2.src}"/{OvmfPkg,UefiCpuPkg,MdeModulePkg,IntelFrameworkModulePkg,PcAtChipsetPkg,FatBinPkg,EdkShellBinPkg,MdePkg,ShellPkg,OptionRomPkg,IntelFrameworkPkg};
|
|
do
|
|
ln -sv "$file" .
|
|
done
|
|
'';
|
|
|
|
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"];
|
|
};
|
|
})
|