cri-o: add phase hooks

This commit is contained in:
zowoq 2021-03-31 16:52:07 +10:00
parent d4c3f5f929
commit e579194d15

View File

@ -41,10 +41,13 @@ buildGoModule rec {
BUILDTAGS = "apparmor seccomp selinux containers_image_openpgp containers_image_ostree_stub"; BUILDTAGS = "apparmor seccomp selinux containers_image_openpgp containers_image_ostree_stub";
buildPhase = '' buildPhase = ''
runHook preBuild
make binaries docs BUILDTAGS="$BUILDTAGS" make binaries docs BUILDTAGS="$BUILDTAGS"
runHook postBuild
''; '';
installPhase = '' installPhase = ''
runHook preInstall
install -Dm755 bin/* -t $out/bin install -Dm755 bin/* -t $out/bin
for shell in bash fish zsh; do for shell in bash fish zsh; do
@ -52,6 +55,7 @@ buildGoModule rec {
done done
installManPage docs/*.[1-9] installManPage docs/*.[1-9]
runHook postInstall
''; '';
passthru.tests = { inherit (nixosTests) cri-o; }; passthru.tests = { inherit (nixosTests) cri-o; };