cri-tools: add phase hooks
This commit is contained in:
parent
eea81a5e5b
commit
34bc549bfc
|
@ -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; {
|
||||||
|
|
Loading…
Reference in New Issue