memtest86-efi: add runHook preInstall and postInstall

This commit is contained in:
(cdep)illabout 2021-02-23 18:06:19 +09:00
parent 62802f0531
commit cdcfa7d8e0

View file

@ -35,6 +35,8 @@ stdenv.mkDerivation rec {
]; ];
installPhase = '' installPhase = ''
runHook preInstall
# memtest86 is distributed as a bootable USB image. It contains the actual # memtest86 is distributed as a bootable USB image. It contains the actual
# memtest86 EFI app. # memtest86 EFI app.
# #
@ -50,6 +52,8 @@ stdenv.mkDerivation rec {
') ')
mkdir $out mkdir $out
mcopy -vsi $IMG@@$ESP_OFFSET ::'/EFI/BOOT/*' $out/ mcopy -vsi $IMG@@$ESP_OFFSET ::'/EFI/BOOT/*' $out/
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {