Merge pull request #87658 from zowoq/buildah

buildah: cleanup
This commit is contained in:
Mario Rodas 2020-05-12 07:13:44 -05:00 committed by GitHub
commit 3a5066d0a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,6 @@ buildGoPackage rec {
outputs = [ "out" "man" ];
goPackagePath = "github.com/containers/buildah";
excludedPackages = [ "tests" ];
nativeBuildInputs = [ installShellFiles pkg-config ];
buildInputs = [ gpgme libgpgerror lvm2 btrfs-progs libselinux libseccomp ];
@ -35,11 +34,12 @@ buildGoPackage rec {
buildPhase = ''
pushd go/src/${goPackagePath}
make GIT_COMMIT="unknown"
install -Dm755 buildah $out/bin/buildah
installShellCompletion --bash contrib/completions/bash/buildah
make -C docs
'';
postBuild = ''
installPhase = ''
install -Dm755 buildah $out/bin/buildah
installShellCompletion --bash contrib/completions/bash/buildah
make -C docs install PREFIX="$man"
'';
@ -49,5 +49,6 @@ buildGoPackage rec {
changelog = "https://github.com/containers/buildah/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ Profpatsch ] ++ teams.podman.members;
platforms = platforms.linux;
};
}