conntrack-tools: fixup systemd support
make it optional
This commit is contained in:
parent
1821bd340a
commit
b78c63bc9a
|
@ -1,7 +1,7 @@
|
||||||
{ fetchurl, lib, stdenv, flex, bison, pkg-config, libmnl, libnfnetlink
|
{ fetchurl, lib, stdenv, flex, bison, pkg-config, libmnl, libnfnetlink
|
||||||
, libnetfilter_conntrack, libnetfilter_queue, libnetfilter_cttimeout
|
, libnetfilter_conntrack, libnetfilter_queue, libnetfilter_cttimeout
|
||||||
, libnetfilter_cthelper, systemd
|
, libnetfilter_cthelper, libtirpc
|
||||||
, libtirpc
|
, systemdSupport ? true, systemd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -15,10 +15,16 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libmnl libnfnetlink libnetfilter_conntrack libnetfilter_queue
|
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 ];
|
nativeBuildInputs = [ flex bison pkg-config ];
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
(lib.enableFeature systemdSupport "systemd")
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://conntrack-tools.netfilter.org/";
|
homepage = "http://conntrack-tools.netfilter.org/";
|
||||||
description = "Connection tracking userspace tools";
|
description = "Connection tracking userspace tools";
|
||||||
|
|
Loading…
Reference in a new issue