From 8fb3ddda57829f48590d63d62fcce1827c6a3db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Wed, 1 Oct 2025 17:03:28 +0800 Subject: [PATCH] gnu: Add pipewire-minimal. * gnu/packages/linux.scm (pipewire-minimal): New variable. Change-Id: Ibe30029f63b0cf3085f33569a8c165f0e48434ce Signed-off-by: Gabriel Wicki --- gnu/packages/linux.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index cbed9b1d45f..b8df4438e93 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -10986,6 +10986,26 @@ and Flatpak we expect PipeWire to provide a core building block for the future of Linux application development.") (license license:lgpl2.0+))) +(define-public pipewire-minimal + ;; Used as libpipewire to reduce closure size and avoid dependency cycles. + (hidden-package + (package + (inherit pipewire) + (name "pipewire-minimal") + (arguments + (list + #:configure-flags + #~(list "-Dsession-managers=[]" + "-Ddbus=disabled" + "-Dflatpak=disabled" + ;; XXX: Otherwise test_loop will fail with: + ;; libgcc_s.so.1 must be installed for pthread_cancel to work + (string-append "-Dc_link_args=-Wl,-rpath=" #$output "/lib" + " -lgcc_s") + "-Db_asneeded=false"))) + (native-inputs '()) + (inputs '())))) + (define-public wireplumber (package (name "wireplumber")