mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
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
|
||||
, 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";
|
||||
|
|
Loading…
Reference in a new issue