corosync: configure with --enable-systemd

This commit is contained in:
Astro 2022-03-02 20:46:04 +01:00
parent 2b78cfdb09
commit 68c44db781

View file

@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, makeWrapper, pkg-config, kronosnet, nss, nspr, libqb { lib, stdenv, fetchurl, makeWrapper, pkg-config, kronosnet, nss, nspr, libqb
, dbus, rdma-core, libstatgrab, net-snmp , systemd, dbus, rdma-core, libstatgrab, net-snmp
, enableDbus ? false , enableDbus ? false
, enableInfiniBandRdma ? false , enableInfiniBandRdma ? false
, enableMonitoring ? false , enableMonitoring ? false
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper pkg-config ]; nativeBuildInputs = [ makeWrapper pkg-config ];
buildInputs = [ buildInputs = [
kronosnet nss nspr libqb kronosnet nss nspr libqb systemd.dev
] ++ optional enableDbus dbus ] ++ optional enableDbus dbus
++ optional enableInfiniBandRdma rdma-core ++ optional enableInfiniBandRdma rdma-core
++ optional enableMonitoring libstatgrab ++ optional enableMonitoring libstatgrab
@ -32,6 +32,8 @@ stdenv.mkDerivation rec {
"--with-logdir=/var/log/corosync" "--with-logdir=/var/log/corosync"
"--enable-watchdog" "--enable-watchdog"
"--enable-qdevices" "--enable-qdevices"
# allows Type=notify in the systemd service
"--enable-systemd"
] ++ optional enableDbus "--enable-dbus" ] ++ optional enableDbus "--enable-dbus"
++ optional enableInfiniBandRdma "--enable-rdma" ++ optional enableInfiniBandRdma "--enable-rdma"
++ optional enableMonitoring "--enable-monitoring" ++ optional enableMonitoring "--enable-monitoring"