Unverified Commit d964cb64 authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

dbus: make epoll, inotify, and systemd support conditional

These will be enabled by default due `-Dauto_features=enabled` being set
in Nixpkgs. However, not all of those features are available on every
platform supported by D-Bus, so set them conditionally.
parent 0ef5ddf6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -106,9 +106,12 @@ stdenv.mkDerivation (finalAttrs: {
    "-Dsystemd_user_unitdir=${placeholder "out"}/etc/systemd/user"
    (lib.mesonEnable "x11_autolaunch" x11Support)
    (lib.mesonEnable "apparmor" stdenv.hostPlatform.isLinux)
    (lib.mesonEnable "epoll" stdenv.hostPlatform.isLinux)
    (lib.mesonEnable "inotify" stdenv.hostPlatform.isLinux)
    (lib.mesonEnable "libaudit" stdenv.hostPlatform.isLinux)
    (lib.mesonEnable "kqueue" (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isBSD))
    (lib.mesonEnable "launchd" stdenv.hostPlatform.isDarwin)
    (lib.mesonEnable "systemd" enableSystemd)
    "-Dselinux=disabled"
  ]
  ++ lib.optionals enableSystemd [