skopeo: add phase hooks
This commit is contained in:
parent
0745b524b2
commit
eea81a5e5b
@ -35,17 +35,22 @@ buildGoModule rec {
|
|||||||
++ lib.optionals stdenv.isLinux [ lvm2 btrfs-progs ];
|
++ lib.optionals stdenv.isLinux [ lvm2 btrfs-progs ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
make bin/skopeo docs
|
make bin/skopeo docs
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
install -Dm755 bin/skopeo -t $out/bin
|
install -Dm755 bin/skopeo -t $out/bin
|
||||||
installManPage docs/*.[1-9]
|
installManPage docs/*.[1-9]
|
||||||
installShellCompletion --bash completions/bash/skopeo
|
installShellCompletion --bash completions/bash/skopeo
|
||||||
'' + lib.optionalString stdenv.isLinux ''
|
'' + lib.optionalString stdenv.isLinux ''
|
||||||
wrapProgram $out/bin/skopeo \
|
wrapProgram $out/bin/skopeo \
|
||||||
--prefix PATH : ${lib.makeBinPath [ fuse-overlayfs ]}
|
--prefix PATH : ${lib.makeBinPath [ fuse-overlayfs ]}
|
||||||
|
'' + ''
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user