mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 04:27:27 +03:00
libnftnl: 1.2.6 -> 1.2.7
While at it added a trivial updater and enabled parallel builds.
This commit is contained in:
parent
c82d9d313d
commit
1b50150025
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user