mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
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 ];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
patchShebangs .
|
||||
make bin/skopeo docs
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 bin/skopeo -t $out/bin
|
||||
installManPage docs/*.[1-9]
|
||||
installShellCompletion --bash completions/bash/skopeo
|
||||
'' + lib.optionalString stdenv.isLinux ''
|
||||
wrapProgram $out/bin/skopeo \
|
||||
--prefix PATH : ${lib.makeBinPath [ fuse-overlayfs ]}
|
||||
'' + ''
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user