cri-tools: add phase hooks

This commit is contained in:
zowoq 2021-03-31 16:52:08 +10:00
parent eea81a5e5b
commit 34bc549bfc
1 changed files with 4 additions and 0 deletions

View File

@ -22,16 +22,20 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
buildPhase = ''
runHook preBuild
make binaries VERSION=${version}
runHook postBuild
'';
installPhase = ''
runHook preInstall
make install BINDIR=$out/bin
for shell in bash fish zsh; do
$out/bin/crictl completion $shell > crictl.$shell
installShellCompletion crictl.$shell
done
runHook postInstall
'';
meta = with lib; {