conntrack-tools: fixup systemd support

make it optional
This commit is contained in:
Arthur Gautier 2023-07-12 06:14:46 +00:00
parent 1821bd340a
commit b78c63bc9a

View file

@ -1,7 +1,7 @@
{ fetchurl, lib, stdenv, flex, bison, pkg-config, libmnl, libnfnetlink
, libnetfilter_conntrack, libnetfilter_queue, libnetfilter_cttimeout
, libnetfilter_cthelper, systemd
, libtirpc
, libnetfilter_cthelper, libtirpc
, systemdSupport ? true, systemd
}:
stdenv.mkDerivation rec {
@ -15,10 +15,16 @@ stdenv.mkDerivation rec {
buildInputs = [
libmnl libnfnetlink libnetfilter_conntrack libnetfilter_queue
libnetfilter_cttimeout libnetfilter_cthelper systemd libtirpc
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";