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