2024-07-31 10:19:44 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libmnl, gitUpdater }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "1.2.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libnftnl";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-04-12 12:48:02 +00:00
|
|
|
url = "https://netfilter.org/projects/${pname}/files/${pname}-${version}.tar.xz";
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-kSJ3T5aAk9XAus3dZ95IDzH6QHNAWn/AWKNLDzh67LM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
configureFlags = lib.optional (stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17") "LDFLAGS=-Wl,--undefined-version";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libmnl ];
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
url = "https://git.netfilter.org/libnftnl";
|
|
|
|
rev-prefix = "libnftnl-";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Userspace library providing a low-level netlink API to the in-kernel nf_tables subsystem";
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://netfilter.org/projects/libnftnl/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ fpletz ] ++ teams.helsinki-systems.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|