about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libnfnetlink/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libnfnetlink/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/libnfnetlink/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libnfnetlink/default.nix b/nixpkgs/pkgs/development/libraries/libnfnetlink/default.nix
new file mode 100644
index 000000000000..4c7b4a5cc2dd
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libnfnetlink/default.nix
@@ -0,0 +1,31 @@
+{ lib, stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "libnfnetlink-1.0.1";
+
+  src = fetchurl {
+    url = "https://www.netfilter.org/projects/libnfnetlink/files/${name}.tar.bz2";
+    sha256 = "06mm2x4b01k3m7wnrxblk9j0mybyr4pfz28ml7944xhjx6fy2w7j";
+  };
+
+  patches = [
+    ./Use-stdlib-uint-instead-of-u_int.patch
+  ];
+
+  meta = {
+    description = "Low-level library for netfilter related kernel/userspace communication";
+    longDescription = ''
+      libnfnetlink is the low-level library for netfilter related kernel/userspace communication.
+      It provides a generic messaging infrastructure for in-kernel netfilter subsystems
+      (such as nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their respective users
+      and/or management tools in userspace.
+
+      This library is not meant as a public API for application developers.
+      It is only used by other netfilter.org projects, like the aforementioned ones.
+    '';
+    homepage = "http://www.netfilter.org/projects/libnfnetlink/index.html";
+    license = lib.licenses.gpl2;
+
+    platforms = lib.platforms.linux;
+  };
+}