dnsmasq: enable nftset support

dnsmasq supports adding to nftsets in addition to ipsets since 2.87.
This commit is contained in:
Gary Guo 2023-10-06 06:40:30 +01:00 committed by Bjørn Forsman
parent 81871f4c87
commit bd54c2369c

View file

@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, pkg-config, nettle
, libidn, libnetfilter_conntrack, buildPackages
, libidn, libnetfilter_conntrack, nftables, buildPackages
, dbusSupport ? stdenv.isLinux
, dbus
, nixosTests
@ -13,6 +13,7 @@ let
"-DHAVE_DBUS"
] ++ lib.optionals stdenv.isLinux [
"-DHAVE_CONNTRACK"
"-DHAVE_NFTSET"
]);
in
stdenv.mkDerivation rec {
@ -75,7 +76,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ nettle libidn ]
++ lib.optionals dbusSupport [ dbus ]
++ lib.optionals stdenv.isLinux [ libnetfilter_conntrack ];
++ lib.optionals stdenv.isLinux [ libnetfilter_conntrack nftables ];
passthru.tests = {
prometheus-exporter = nixosTests.prometheus-exporters.dnsmasq;