From 0745b524b2ba65b7445db71448ae64a00dfda9b4 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Wed, 31 Mar 2021 16:52:07 +1000 Subject: [PATCH] buildah: add phase hooks --- pkgs/development/tools/buildah/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/tools/buildah/default.nix b/pkgs/development/tools/buildah/default.nix index 4ca0343d8fa1..cebd80ff83e6 100644 --- a/pkgs/development/tools/buildah/default.nix +++ b/pkgs/development/tools/buildah/default.nix @@ -45,15 +45,19 @@ buildGoModule rec { ]; buildPhase = '' + runHook preBuild patchShebangs . make bin/buildah GIT_COMMIT="unknown" make -C docs GOMD2MAN="${go-md2man}/bin/go-md2man" + runHook postBuild ''; installPhase = '' + runHook preInstall install -Dm755 bin/buildah $out/bin/buildah installShellCompletion --bash contrib/completions/bash/buildah make -C docs install PREFIX="$man" + runHook postInstall ''; meta = with lib; {