10 stdenv.mkDerivation rec {
15 url = "https://netfilter.org/projects/${pname}/files/${pname}-${version}.tar.xz";
16 hash = "sha256-N/6l1rXJsI3nkg0pjePNyULnrmSxo+i4gLLTkK5nrZU=";
19 configureFlags = lib.optional (
20 stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17"
21 ) "LDFLAGS=-Wl,--undefined-version";
23 nativeBuildInputs = [ pkg-config ];
24 buildInputs = [ libmnl ];
26 enableParallelBuilding = true;
28 passthru.updateScript = gitUpdater {
29 url = "https://git.netfilter.org/libnftnl";
30 rev-prefix = "libnftnl-";
34 description = "Userspace library providing a low-level netlink API to the in-kernel nf_tables subsystem";
35 homepage = "https://netfilter.org/projects/libnftnl/";
36 license = licenses.gpl2Plus;
37 platforms = platforms.linux;
38 maintainers = with maintainers; [ fpletz ];