OMVF: Only need some of the sources, and symlinks instead of copies are fine

svn path=/nixpkgs/trunk/; revision=33090
This commit is contained in:
Shea Levy 2012-03-14 22:43:07 +00:00
parent 003b24ac45
commit 6c99fad938
2 changed files with 7 additions and 5 deletions

View file

@ -14,10 +14,12 @@ in
stdenv.mkDerivation (edk2.setup "OvmfPkg/OvmfPkg${targetArch}.dsc" {
name = "OVMF-2012-03-13";
src = edk2.src;
patchPhase = ''
rm -fR Conf BaseTools EdkCompatibilityPkg
unpackPhase = ''
for file in \
"${edk2.src}"/{OvmfPkg,UefiCpuPkg,MdeModulePkg,IntelFrameworkModulePkg,PcAtChipsetPkg,FatBinPkg,EdkShellBinPkg,MdePkg,ShellPkg,OptionRomPkg,IntelFrameworkPkg};
do
ln -sv "$file" .
done
'';
meta = {

View file

@ -64,7 +64,7 @@ edk2 = stdenv.mkDerivation {
build
";
installPhase = "mv -v Build $out";
installPhase = "mv -v Build/*/* $out";
} // (removeAttrs attrs [ "buildInputs" ] );
};
};