pipewire: use elogind if systemd is disabled (#348556)

This commit is contained in:
Martin Weinelt
2024-10-15 18:05:10 +02:00
committed by GitHub
@@ -4,6 +4,7 @@
, python3
, meson
, ninja
, elogind
, systemd
, enableSystemd ? true # enableSystemd=false maintained by maintainers.qyliss.
, pkg-config
@@ -120,7 +121,7 @@ stdenv.mkDerivation(finalAttrs: {
ncurses
readline
sbc
] ++ (if enableSystemd then [ systemd ] else [ udev ])
] ++ (if enableSystemd then [ systemd ] else [ elogind udev ])
++ (if lib.meta.availableOn stdenv.hostPlatform webrtc-audio-processing_1 then [ webrtc-audio-processing_1 ] else [ webrtc-audio-processing ])
++ lib.optional (lib.meta.availableOn stdenv.hostPlatform ldacbt) ldacbt
++ lib.optional zeroconfSupport avahi
@@ -146,6 +147,7 @@ stdenv.mkDerivation(finalAttrs: {
(lib.mesonEnable "avahi" zeroconfSupport)
(lib.mesonEnable "gstreamer" true)
(lib.mesonEnable "gstreamer-device-provider" true)
(lib.mesonOption "logind-provider" (if enableSystemd then "libsystemd" else "libelogind"))
(lib.mesonEnable "systemd" enableSystemd)
(lib.mesonEnable "systemd-system-service" enableSystemd)
(lib.mesonEnable "udev" (!enableSystemd))