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 ]; nativeBuildInputs = [ installShellFiles ];
buildPhase = '' buildPhase = ''
runHook preBuild
make binaries VERSION=${version} make binaries VERSION=${version}
runHook postBuild
''; '';
installPhase = '' installPhase = ''
runHook preInstall
make install BINDIR=$out/bin make install BINDIR=$out/bin
for shell in bash fish zsh; do for shell in bash fish zsh; do
$out/bin/crictl completion $shell > crictl.$shell $out/bin/crictl completion $shell > crictl.$shell
installShellCompletion crictl.$shell installShellCompletion crictl.$shell
done done
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {