buildah: support build for darwin

This commit is contained in:
Jiajie Chen 2022-08-17 01:10:56 +08:00 committed by zowoq
parent 04c142749c
commit 03e32b7093
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,5 @@
{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
, go-md2man
@ -32,8 +33,9 @@ buildGoModule rec {
nativeBuildInputs = [ go-md2man installShellFiles pkg-config ];
buildInputs = [
btrfs-progs
gpgme
] ++ lib.optionals stdenv.isLinux [
btrfs-progs
libapparmor
libseccomp
libselinux
@ -62,6 +64,5 @@ buildGoModule rec {
changelog = "https://github.com/containers/buildah/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ Profpatsch ] ++ teams.podman.members;
platforms = platforms.linux;
};
}

View file

@ -2,6 +2,7 @@
, runCommand
, makeWrapper
, lib
, stdenv
, extraPackages ? []
, buildah
, runc # Default container runtime
@ -20,6 +21,7 @@ let
preferLocalBuild = true;
binPath = lib.makeBinPath ([
] ++ lib.optionals stdenv.isLinux [
runc
crun
conmon