Subject: [bug#75706] [PATCH] gnu: pipewire: Enable echo-cancel-webrtc

From: spacecadet <[email-masked]>
Date: Mon, 20 Jan 2025 21:58:05 +0000

Pipewire's echo-cancel-webrtc subproject, which provides
libpipewire-module-echo-cancel, requires abseil-cpp.

* gnu/packages/linux.scm (pipewire)
Add abseil-cpp input, required to build echo-cancel-webrtc subproject.
Add -Decho-cancel-webrtc=enabled configure flag to ensure the plugin
builds, default is "auto".
---
  gnu/packages/linux.scm | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 49fa5a8dda..c570338f5c 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -10024,6 +10024,7 @@ (define-public pipewire
       (list
        #:configure-flags
        #~(list (string-append "-Dudevrulesdir=" #$output "/lib/udev/rules.d")
+              "-Decho-cancel-webrtc=enabled"
                "-Dman=enabled"
                "-Drlimits-install=false"
                "-Dsession-managers=[]"
@@ -10035,7 +10036,8 @@ (define-public pipewire
             doxygen
             python
             python-docutils))
-    (inputs (list alsa-lib
+    (inputs (list abseil-cpp ; for webrtc-audio-processing
+                  alsa-lib
                    avahi
                    bluez
                    dbus
-- 
2.46.0