The first step is to compile DNSMASQ v2.89. This is the one with nftset support.
The prerequisites that need to be installed are build-essentials, libdbus-1-dev, libnetfilter-conntrack-dev, idn, libidn11-dev, nettle-dev, gettext, and libnftables-dev....