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