cri-o: add phase hooks
This commit is contained in:
parent
d4c3f5f929
commit
e579194d15
@ -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; };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user