mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
buildah: add phase hooks
This commit is contained in:
parent
5490b3b224
commit
0745b524b2
@ -45,15 +45,19 @@ buildGoModule rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
make bin/buildah GIT_COMMIT="unknown"
|
make bin/buildah GIT_COMMIT="unknown"
|
||||||
make -C docs GOMD2MAN="${go-md2man}/bin/go-md2man"
|
make -C docs GOMD2MAN="${go-md2man}/bin/go-md2man"
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
install -Dm755 bin/buildah $out/bin/buildah
|
install -Dm755 bin/buildah $out/bin/buildah
|
||||||
installShellCompletion --bash contrib/completions/bash/buildah
|
installShellCompletion --bash contrib/completions/bash/buildah
|
||||||
make -C docs install PREFIX="$man"
|
make -C docs install PREFIX="$man"
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user