depot/third_party/nixpkgs/pkgs/os-specific/linux/conntrack-tools/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

35 lines
1 KiB
Nix

{ fetchurl, lib, stdenv, flex, bison, pkg-config, libmnl, libnfnetlink
, libnetfilter_conntrack, libnetfilter_queue, libnetfilter_cttimeout
, libnetfilter_cthelper, libtirpc
, systemdSupport ? true, systemd
}:
stdenv.mkDerivation rec {
pname = "conntrack-tools";
version = "1.4.8";
src = fetchurl {
url = "https://www.netfilter.org/projects/conntrack-tools/files/${pname}-${version}.tar.xz";
hash = "sha256-BnZ39MX2VkgZ547TqdSomAk16pJz86uyKkIOowq13tY=";
};
buildInputs = [
libmnl libnfnetlink libnetfilter_conntrack libnetfilter_queue
libnetfilter_cttimeout libnetfilter_cthelper libtirpc
] ++ lib.optionals systemdSupport [
systemd
];
nativeBuildInputs = [ flex bison pkg-config ];
configureFlags = [
(lib.enableFeature systemdSupport "systemd")
];
meta = with lib; {
homepage = "http://conntrack-tools.netfilter.org/";
description = "Connection tracking userspace tools";
platforms = platforms.linux;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fpletz ];
};
}