summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-12-13 04:20:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-12-13 04:20:00 -0500
commit072cdcb265123b40e507c427ba99f907929c6f79 (patch)
treeac4346193d23b32804364fe5646f4d32202f0854 /pkgs/applications
parentd4a95f016a20ac09728305e6734011b2a9ca96cf (diff)
downloadnixpkgs-072cdcb265123b40e507c427ba99f907929c6f79.tar
nixpkgs-072cdcb265123b40e507c427ba99f907929c6f79.tar.gz
nixpkgs-072cdcb265123b40e507c427ba99f907929c6f79.tar.bz2
nixpkgs-072cdcb265123b40e507c427ba99f907929c6f79.tar.lz
nixpkgs-072cdcb265123b40e507c427ba99f907929c6f79.tar.xz
nixpkgs-072cdcb265123b40e507c427ba99f907929c6f79.tar.zst
nixpkgs-072cdcb265123b40e507c427ba99f907929c6f79.zip
podman: enable on darwin
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/virtualization/podman/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/applications/virtualization/podman/default.nix b/pkgs/applications/virtualization/podman/default.nix
index 607d790247f..75bc85b745a 100644
--- a/pkgs/applications/virtualization/podman/default.nix
+++ b/pkgs/applications/virtualization/podman/default.nix
@@ -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;
   };
 }