summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorSascha Grunert <sgrunert@suse.com>2020-05-12 10:12:23 +0200
committerSascha Grunert <sgrunert@suse.com>2020-05-12 10:12:27 +0200
commit6a87e4b3a6349b55e68faa3f55cf3c5547cd1813 (patch)
tree2a4f67cadfdb8a4310aefbf24e481bb2b190c84c /nix
parent7837bf3c071f1259bc08d8f9e52ed2b4edbda428 (diff)
downloadpodman-6a87e4b3a6349b55e68faa3f55cf3c5547cd1813.tar.gz
podman-6a87e4b3a6349b55e68faa3f55cf3c5547cd1813.tar.bz2
podman-6a87e4b3a6349b55e68faa3f55cf3c5547cd1813.zip
Add netgo build tag to static binary
This allows us to system independently resolve DNS requests in static Podman binaries. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Diffstat (limited to 'nix')
-rw-r--r--nix/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/default.nix b/nix/default.nix
index 211caee93..cf607c0ad 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -43,7 +43,7 @@ let
]);
src = ./..;
EXTRA_LDFLAGS = ''-linkmode external -extldflags "-static -lm"'';
- BUILDTAGS = ''static apparmor selinux seccomp systemd varlink containers_image_ostree_stub'';
+ BUILDTAGS = ''static netgo apparmor selinux seccomp systemd varlink containers_image_ostree_stub'';
})).override {
gpgme = (static pkgs.gpgme);
libseccomp = (static pkgs.libseccomp);