podman: enable on darwin

This commit is contained in:
Mario Rodas 2019-12-13 04:20:00 -05:00
parent d4a95f016a
commit 072cdcb265
No known key found for this signature in database
GPG Key ID: 4C4BEFD7B18DC5E8

View File

@ -20,12 +20,14 @@ buildGoPackage rec {
nativeBuildInputs = [ pkgconfig go-md2man installShellFiles ];
buildInputs = [ btrfs-progs libseccomp gpgme lvm2 systemd ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ btrfs-progs libseccomp gpgme lvm2 systemd ];
buildPhase = ''
pushd $NIX_BUILD_TOP/go/src/${goPackagePath}
pushd go/src/${goPackagePath}
patchShebangs .
make binaries docs
${if stdenv.isDarwin
then "make CGO_ENABLED=0 BUILDTAGS='remoteclient containers_image_openpgp exclude_graphdriver_devicemapper' varlink_generate all"
else "make binaries docs"}
'';
installPhase = ''
@ -40,6 +42,6 @@ buildGoPackage rec {
description = "A program for managing pods, containers and container images";
license = licenses.asl20;
maintainers = with maintainers; [ vdemeester saschagrunert ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}