Merge pull request #78002 from marsam/update-podman
podman: enable on darwin
This commit is contained in:
commit
2316b8da0e
@ -20,12 +20,14 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig go-md2man installShellFiles ];
|
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 = ''
|
buildPhase = ''
|
||||||
pushd $NIX_BUILD_TOP/go/src/${goPackagePath}
|
pushd go/src/${goPackagePath}
|
||||||
patchShebangs .
|
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 = ''
|
installPhase = ''
|
||||||
@ -39,7 +41,7 @@ buildGoPackage rec {
|
|||||||
homepage = https://podman.io/;
|
homepage = https://podman.io/;
|
||||||
description = "A program for managing pods, containers and container images";
|
description = "A program for managing pods, containers and container images";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ vdemeester saschagrunert ];
|
maintainers = with maintainers; [ vdemeester saschagrunert marsam ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user