diff --git a/pkgs/tools/networking/connman/connman.nix b/pkgs/tools/networking/connman/connman.nix index 3ec9bce0b4c7..311fffb40874 100644 --- a/pkgs/tools/networking/connman/connman.nix +++ b/pkgs/tools/networking/connman/connman.nix @@ -67,17 +67,17 @@ stdenv.mkDerivation rec { libmnl gnutls readline - ] ++ optionals (enableOpenconnect) [ openconnect ]; + ] ++ optionals (enableOpenconnect) [ openconnect ] + ++ optionals (firewallType == "iptables") [ iptables ] + ++ optionals (firewallType == "nftables") [ libnftnl ] + ++ optionals (enablePolkit) [ polkit ] + ++ optionals (enablePptp) [ pptp ppp ] + ; nativeBuildInputs = [ pkg-config file - ] - ++ optionals (enablePolkit) [ polkit ] - ++ optionals (enablePptp) [ pptp ppp ] - ++ optionals (firewallType == "iptables") [ iptables ] - ++ optionals (firewallType == "nftables") [ libnftnl ] - ; + ]; # fix invalid path to 'file' postPatch = ''