runc: add phase hooks
This commit is contained in:
parent
974ee55b16
commit
5490b3b224
|
@ -35,17 +35,21 @@ buildGoPackage rec {
|
|||
makeFlags = [ "BUILDTAGS+=seccomp" ];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
cd go/src/${goPackagePath}
|
||||
patchShebangs .
|
||||
make ${toString makeFlags} runc man
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 runc $out/bin/runc
|
||||
installManPage man/*/*.[1-9]
|
||||
wrapProgram $out/bin/runc \
|
||||
--prefix PATH : ${lib.makeBinPath [ procps ]} \
|
||||
--prefix PATH : /run/current-system/systemd/bin
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.tests = { inherit (nixosTests) cri-o docker podman; };
|
||||
|
|
Loading…
Reference in New Issue