summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorAstro <astro@spaceboyz.net>2022-03-02 20:46:04 +0100
committerAstro <astro@spaceboyz.net>2022-03-08 20:28:56 +0100
commit68c44db781e3372f3370ced39a52b42dd8f5f059 (patch)
tree84b111df31a4b702d64a98a7c8d73ff945618ef0 /pkgs/servers
parent2b78cfdb097dfb68bcfcae532de303475ae1a030 (diff)
downloadnixpkgs-68c44db781e3372f3370ced39a52b42dd8f5f059.tar
nixpkgs-68c44db781e3372f3370ced39a52b42dd8f5f059.tar.gz
nixpkgs-68c44db781e3372f3370ced39a52b42dd8f5f059.tar.bz2
nixpkgs-68c44db781e3372f3370ced39a52b42dd8f5f059.tar.lz
nixpkgs-68c44db781e3372f3370ced39a52b42dd8f5f059.tar.xz
nixpkgs-68c44db781e3372f3370ced39a52b42dd8f5f059.tar.zst
nixpkgs-68c44db781e3372f3370ced39a52b42dd8f5f059.zip
corosync: configure with --enable-systemd
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/corosync/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/servers/corosync/default.nix b/pkgs/servers/corosync/default.nix
index df73fb9f48e..257837f1414 100644
--- a/pkgs/servers/corosync/default.nix
+++ b/pkgs/servers/corosync/default.nix
@@ -1,5 +1,5 @@
 { 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
 , enableInfiniBandRdma ? false
 , enableMonitoring ? false
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ makeWrapper pkg-config ];
 
   buildInputs = [
-    kronosnet nss nspr libqb
+    kronosnet nss nspr libqb systemd.dev
   ] ++ optional enableDbus dbus
     ++ optional enableInfiniBandRdma rdma-core
     ++ optional enableMonitoring libstatgrab
@@ -32,6 +32,8 @@ stdenv.mkDerivation rec {
     "--with-logdir=/var/log/corosync"
     "--enable-watchdog"
     "--enable-qdevices"
+    # allows Type=notify in the systemd service
+    "--enable-systemd"
   ] ++ optional enableDbus "--enable-dbus"
     ++ optional enableInfiniBandRdma "--enable-rdma"
     ++ optional enableMonitoring "--enable-monitoring"