libnftnl: 1.2.6 -> 1.2.7

While at it added a trivial updater and enabled parallel builds.
This commit is contained in:
Sergei Trofimovich 2024-07-16 22:29:55 +01:00
parent c82d9d313d
commit 1b50150025

View File

@ -1,12 +1,12 @@
{ lib, stdenv, fetchurl, pkg-config, libmnl }:
{ lib, stdenv, fetchurl, pkg-config, libmnl, gitUpdater }:
stdenv.mkDerivation rec {
version = "1.2.6";
version = "1.2.7";
pname = "libnftnl";
src = fetchurl {
url = "https://netfilter.org/projects/${pname}/files/${pname}-${version}.tar.xz";
hash = "sha256-zurqLNkhR9oZ8To1p/GkvCdn/4l+g45LR5z1S1nHd/Q=";
hash = "sha256-kSJ3T5aAk9XAus3dZ95IDzH6QHNAWn/AWKNLDzh67LM=";
};
configureFlags = lib.optional (stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17") "LDFLAGS=-Wl,--undefined-version";
@ -14,6 +14,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libmnl ];
enableParallelBuilding = true;
passthru.updateScript = gitUpdater {
url = "https://git.netfilter.org/libnftnl";
rev-prefix = "libnftnl-";
};
meta = with lib; {
description = "Userspace library providing a low-level netlink API to the in-kernel nf_tables subsystem";
homepage = "https://netfilter.org/projects/libnftnl/";