mirror of
https://codeberg.org/mart-w/nixos-x13s.git
synced 2024-11-14 03:34:48 +01:00
30 lines
559 B
Nix
30 lines
559 B
Nix
{
|
|
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/
|
|
'';
|
|
}
|