1{ lib, stdenv, fetchurl, pkg-config, libmnl }:
2
3stdenv.mkDerivation rec {
4 version = "1.2.6";
5 pname = "libnftnl";
6
7 src = fetchurl {
8 url = "https://netfilter.org/projects/${pname}/files/${pname}-${version}.tar.xz";
9 hash = "sha256-zurqLNkhR9oZ8To1p/GkvCdn/4l+g45LR5z1S1nHd/Q=";
10 };
11
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [ libmnl ];
14
15 meta = with lib; {
16 description = "A userspace library providing a low-level netlink API to the in-kernel nf_tables subsystem";
17 homepage = "https://netfilter.org/projects/libnftnl/";
18 license = licenses.gpl2Plus;
19 platforms = platforms.linux;
20 maintainers = with maintainers; [ fpletz ajs124 ];
21 };
22}