Merge pull request #91643 from zowoq/podman-darwin

podman: fix darwin build
This commit is contained in:
Mario Rodas 2020-06-27 13:45:02 -05:00 committed by GitHub
commit a2a893bdc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,11 +44,14 @@ buildGoModule rec {
buildPhase = '' buildPhase = ''
patchShebangs . patchShebangs .
${if stdenv.isDarwin ${if stdenv.isDarwin
then "make CGO_ENABLED=0 BUILDTAGS='remoteclient containers_image_openpgp exclude_graphdriver_devicemapper' varlink_generate all" then "make podman-remote"
else "make podman docs"} else "make podman"}
make docs
''; '';
installPhase = '' installPhase = stdenv.lib.optionalString stdenv.isDarwin ''
mv bin/{podman-remote,podman}
'' + ''
install -Dm555 bin/podman $out/bin/podman install -Dm555 bin/podman $out/bin/podman
installShellCompletion --bash completions/bash/podman installShellCompletion --bash completions/bash/podman
installShellCompletion --zsh completions/zsh/_podman installShellCompletion --zsh completions/zsh/_podman
@ -63,6 +66,5 @@ buildGoModule rec {
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ marsam ] ++ teams.podman.members; maintainers = with maintainers; [ marsam ] ++ teams.podman.members;
platforms = platforms.unix; platforms = platforms.unix;
broken = stdenv.isDarwin;
}; };
} }