From 39e733336cc0841dca9a869b4527f33b49c80ea4 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 27 Oct 2020 23:37:01 +0100 Subject: systemd: build without iptables when networkd is disabled upstreams TODO mentions iptables-dev (libiptc) is also used for nspawn, but it seems like it only makes use of this via networkd anyways (or does these days) - at least systemdMinimal compiles successfully without iptables in the build closure. --- pkgs/os-specific/linux/systemd/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkgs/os-specific/linux/systemd') diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 6ecfe26edef..665b330aa9e 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -167,7 +167,6 @@ stdenv.mkDerivation { cryptsetup curl.dev glib - iptables kmod libapparmor libcap @@ -181,7 +180,9 @@ stdenv.mkDerivation { pam pcre2 xz - ] ++ lib.optional withKexectools kexectools + ] + ++ lib.optional withNetworkd iptables + ++ lib.optional withKexectools kexectools ++ lib.optional withLibseccomp libseccomp ++ lib.optional withEfi gnu-efi ++ lib.optional withSelinux libselinux -- cgit 1.4.1