add uefi package and iso builder
thanks to https://github.com/martiert/x13s-bios
This commit is contained in:
parent
3fa14acfdd
commit
0650514998
3 changed files with 88 additions and 0 deletions
29
packages/uefi.nix
Normal file
29
packages/uefi.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
stdenv,
|
||||
fetchurl,
|
||||
innoextract,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "uefi";
|
||||
version = "1.60";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.lenovo.com/pccbbs/mobiles/n3huj19w.exe";
|
||||
hash = "sha256-ZSjkvbMb0e9CoL2OYo3Aioyz3or1YkOX/BdOOeAuL7I=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ innoextract ];
|
||||
|
||||
unpackPhase = ''
|
||||
innoextract $src
|
||||
'';
|
||||
|
||||
doBuild = false;
|
||||
|
||||
installPhase = ''
|
||||
mkdir --parent $out/{EFI/Boot,Flash}
|
||||
cp code\$GetExtractPath\$/Rfs/Usb/Bootaa64.efi $out/EFI/Boot/
|
||||
cp -r code\$GetExtractPath\$/Rfs/Fw/* $out/Flash/
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue