speechd: ensure to use the same option has given arguments

This commit is contained in:
pinage404
2026-07-18 16:34:31 +02:00
committed by Jan Tojnar
parent 75f645ed32
commit e96fca22db

View File

@@ -120,7 +120,15 @@ stdenv.mkDerivation (finalAttrs: {
[
"--sysconfdir=/etc"
# Audio method falls back from left to right.
"--with-default-audio-method=\"libao,pulse,pipewire,alsa,oss\""
''--with-default-audio-method="${
lib.concatStringsSep "," (
lib.optional withLibao "libao"
++ lib.optional withPulse "pulse"
++ lib.optional withAlsa "alsa"
++ lib.optional withPipewire "pipewire"
++ lib.optional withOss "oss"
)
}"''
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
"--with-systemduserunitdir=${placeholder "out"}/lib/systemd/user"
(withFeature withPulse "pulse")