mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 05:57:53 +00:00
pipewire: remove superfluous args
This commit is contained in:
parent
3c247e4d29
commit
3cf28607c1
@ -5,7 +5,6 @@
|
|||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
, systemd
|
, systemd
|
||||||
, enableSystemd ? true
|
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, docutils
|
, docutils
|
||||||
, doxygen
|
, doxygen
|
||||||
@ -15,7 +14,6 @@
|
|||||||
, alsa-lib
|
, alsa-lib
|
||||||
, libjack2
|
, libjack2
|
||||||
, libusb1
|
, libusb1
|
||||||
, udev
|
|
||||||
, libsndfile
|
, libsndfile
|
||||||
, vulkanSupport ? true
|
, vulkanSupport ? true
|
||||||
, vulkan-headers
|
, vulkan-headers
|
||||||
@ -27,52 +25,35 @@
|
|||||||
, lilv
|
, lilv
|
||||||
, makeFontsConf
|
, makeFontsConf
|
||||||
, nixosTests
|
, nixosTests
|
||||||
, withValgrind ? lib.meta.availableOn stdenv.hostPlatform valgrind
|
|
||||||
, valgrind
|
, valgrind
|
||||||
, libcameraSupport ? true
|
|
||||||
, libcamera
|
, libcamera
|
||||||
, libdrm
|
, libdrm
|
||||||
, gstreamerSupport ? true
|
|
||||||
, gst_all_1
|
, gst_all_1
|
||||||
, ffmpegSupport ? true
|
|
||||||
, ffmpeg
|
, ffmpeg
|
||||||
, bluezSupport ? true
|
|
||||||
, bluez
|
, bluez
|
||||||
, sbc
|
, sbc
|
||||||
, libfreeaptx
|
, libfreeaptx
|
||||||
, liblc3
|
, liblc3
|
||||||
, fdk_aac
|
, fdk_aac
|
||||||
, libopus
|
, libopus
|
||||||
, ldacbtSupport ? bluezSupport && lib.meta.availableOn stdenv.hostPlatform ldacbt
|
|
||||||
, ldacbt
|
, ldacbt
|
||||||
, nativeHspSupport ? true
|
|
||||||
, nativeHfpSupport ? true
|
|
||||||
, nativeModemManagerSupport ? true
|
|
||||||
, modemmanager
|
, modemmanager
|
||||||
, ofonoSupport ? true
|
|
||||||
, hsphfpdSupport ? true
|
|
||||||
, pulseTunnelSupport ? true
|
|
||||||
, libpulseaudio
|
, libpulseaudio
|
||||||
, zeroconfSupport ? true
|
, zeroconfSupport ? true
|
||||||
, avahi
|
, avahi
|
||||||
, raopSupport ? true
|
, raopSupport ? true
|
||||||
, openssl
|
, openssl
|
||||||
, opusSupport ? true
|
|
||||||
, rocSupport ? true
|
, rocSupport ? true
|
||||||
, roc-toolkit
|
, roc-toolkit
|
||||||
, x11Support ? true
|
, x11Support ? true
|
||||||
, libcanberra
|
, libcanberra
|
||||||
, xorg
|
, xorg
|
||||||
, mysofaSupport ? true
|
|
||||||
, libmysofa
|
, libmysofa
|
||||||
, ffadoSupport ? x11Support && lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform
|
, ffadoSupport ? x11Support && lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform
|
||||||
, ffado
|
, ffado
|
||||||
, libselinux
|
, libselinux
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# Bluetooth codec only makes sense if general bluetooth enabled
|
|
||||||
assert ldacbtSupport -> bluezSupport;
|
|
||||||
|
|
||||||
stdenv.mkDerivation(finalAttrs: {
|
stdenv.mkDerivation(finalAttrs: {
|
||||||
pname = "pipewire";
|
pname = "pipewire";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
@ -115,35 +96,41 @@ stdenv.mkDerivation(finalAttrs: {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
alsa-lib
|
alsa-lib
|
||||||
|
bluez
|
||||||
dbus
|
dbus
|
||||||
|
fdk_aac
|
||||||
|
ffmpeg
|
||||||
glib
|
glib
|
||||||
|
gst_all_1.gst-plugins-base
|
||||||
|
gst_all_1.gstreamer
|
||||||
|
libcamera
|
||||||
libjack2
|
libjack2
|
||||||
|
libfreeaptx
|
||||||
|
liblc3
|
||||||
|
libmysofa
|
||||||
|
libopus
|
||||||
|
libpulseaudio
|
||||||
libusb1
|
libusb1
|
||||||
libselinux
|
libselinux
|
||||||
libsndfile
|
libsndfile
|
||||||
lilv
|
lilv
|
||||||
|
modemmanager
|
||||||
ncurses
|
ncurses
|
||||||
readline
|
readline
|
||||||
] ++ (if enableSystemd then [ systemd ] else [ udev ])
|
sbc
|
||||||
|
systemd
|
||||||
|
]
|
||||||
++ (if lib.meta.availableOn stdenv.hostPlatform webrtc-audio-processing_1 then [ webrtc-audio-processing_1 ] else [ webrtc-audio-processing ])
|
++ (if lib.meta.availableOn stdenv.hostPlatform webrtc-audio-processing_1 then [ webrtc-audio-processing_1 ] else [ webrtc-audio-processing ])
|
||||||
++ lib.optionals gstreamerSupport [ gst_all_1.gst-plugins-base gst_all_1.gstreamer ]
|
++ lib.optional (lib.meta.availableOn stdenv.hostPlatform ldacbt) ldacbt
|
||||||
++ lib.optionals libcameraSupport [ libcamera ]
|
|
||||||
++ lib.optional ffmpegSupport ffmpeg
|
|
||||||
++ lib.optionals bluezSupport [ bluez libfreeaptx liblc3 sbc fdk_aac libopus ]
|
|
||||||
++ lib.optional ldacbtSupport ldacbt
|
|
||||||
++ lib.optional nativeModemManagerSupport modemmanager
|
|
||||||
++ lib.optional opusSupport libopus
|
|
||||||
++ lib.optional pulseTunnelSupport libpulseaudio
|
|
||||||
++ lib.optional zeroconfSupport avahi
|
++ lib.optional zeroconfSupport avahi
|
||||||
++ lib.optional raopSupport openssl
|
++ lib.optional raopSupport openssl
|
||||||
++ lib.optional rocSupport roc-toolkit
|
++ lib.optional rocSupport roc-toolkit
|
||||||
++ lib.optionals vulkanSupport [ libdrm vulkan-headers vulkan-loader ]
|
++ lib.optionals vulkanSupport [ libdrm vulkan-headers vulkan-loader ]
|
||||||
++ lib.optionals x11Support [ libcanberra xorg.libX11 xorg.libXfixes ]
|
++ lib.optionals x11Support [ libcanberra xorg.libX11 xorg.libXfixes ]
|
||||||
++ lib.optional mysofaSupport libmysofa
|
|
||||||
++ lib.optional ffadoSupport ffado;
|
++ lib.optional ffadoSupport ffado;
|
||||||
|
|
||||||
# Valgrind binary is required for running one optional test.
|
# Valgrind binary is required for running one optional test.
|
||||||
nativeCheckInputs = lib.optional withValgrind valgrind;
|
nativeCheckInputs = lib.optional (lib.meta.availableOn stdenv.hostPlatform valgrind) valgrind;
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
(lib.mesonEnable "docs" true)
|
(lib.mesonEnable "docs" true)
|
||||||
@ -151,28 +138,29 @@ stdenv.mkDerivation(finalAttrs: {
|
|||||||
(lib.mesonEnable "installed_tests" true)
|
(lib.mesonEnable "installed_tests" true)
|
||||||
(lib.mesonOption "installed_test_prefix" (placeholder "installedTests"))
|
(lib.mesonOption "installed_test_prefix" (placeholder "installedTests"))
|
||||||
(lib.mesonOption "libjack-path" "${placeholder "jack"}/lib")
|
(lib.mesonOption "libjack-path" "${placeholder "jack"}/lib")
|
||||||
(lib.mesonEnable "libcamera" libcameraSupport)
|
(lib.mesonEnable "libcamera" true)
|
||||||
(lib.mesonEnable "libffado" ffadoSupport)
|
(lib.mesonEnable "libffado" ffadoSupport)
|
||||||
(lib.mesonEnable "roc" rocSupport)
|
(lib.mesonEnable "roc" rocSupport)
|
||||||
(lib.mesonEnable "libpulse" pulseTunnelSupport)
|
(lib.mesonEnable "libpulse" true)
|
||||||
(lib.mesonEnable "avahi" zeroconfSupport)
|
(lib.mesonEnable "avahi" zeroconfSupport)
|
||||||
(lib.mesonEnable "gstreamer" gstreamerSupport)
|
(lib.mesonEnable "gstreamer" true)
|
||||||
(lib.mesonEnable "systemd" enableSystemd)
|
(lib.mesonEnable "gstreamer-device-provider" true)
|
||||||
(lib.mesonEnable "systemd-system-service" enableSystemd)
|
(lib.mesonEnable "systemd" true)
|
||||||
(lib.mesonEnable "udev" (!enableSystemd))
|
(lib.mesonEnable "systemd-system-service" true)
|
||||||
(lib.mesonEnable "ffmpeg" ffmpegSupport)
|
(lib.mesonEnable "udev" false)
|
||||||
(lib.mesonEnable "pw-cat-ffmpeg" ffmpegSupport)
|
(lib.mesonEnable "ffmpeg" true)
|
||||||
(lib.mesonEnable "bluez5" bluezSupport)
|
(lib.mesonEnable "pw-cat-ffmpeg" true)
|
||||||
(lib.mesonEnable "bluez5-backend-hsp-native" nativeHspSupport)
|
(lib.mesonEnable "bluez5" true)
|
||||||
(lib.mesonEnable "bluez5-backend-hfp-native" nativeHfpSupport)
|
(lib.mesonEnable "bluez5-backend-hsp-native" true)
|
||||||
(lib.mesonEnable "bluez5-backend-native-mm" nativeModemManagerSupport)
|
(lib.mesonEnable "bluez5-backend-hfp-native" true)
|
||||||
(lib.mesonEnable "bluez5-backend-ofono" ofonoSupport)
|
(lib.mesonEnable "bluez5-backend-native-mm" true)
|
||||||
(lib.mesonEnable "bluez5-backend-hsphfpd" hsphfpdSupport)
|
(lib.mesonEnable "bluez5-backend-ofono" true)
|
||||||
|
(lib.mesonEnable "bluez5-backend-hsphfpd" true)
|
||||||
# source code is not easily obtainable
|
# source code is not easily obtainable
|
||||||
(lib.mesonEnable "bluez5-codec-lc3plus" false)
|
(lib.mesonEnable "bluez5-codec-lc3plus" false)
|
||||||
(lib.mesonEnable "bluez5-codec-lc3" bluezSupport)
|
(lib.mesonEnable "bluez5-codec-lc3" true)
|
||||||
(lib.mesonEnable "bluez5-codec-ldac" ldacbtSupport)
|
(lib.mesonEnable "bluez5-codec-ldac" true)
|
||||||
(lib.mesonEnable "opus" opusSupport)
|
(lib.mesonEnable "opus" true)
|
||||||
(lib.mesonOption "sysconfdir" "/etc")
|
(lib.mesonOption "sysconfdir" "/etc")
|
||||||
(lib.mesonEnable "raop" raopSupport)
|
(lib.mesonEnable "raop" raopSupport)
|
||||||
(lib.mesonOption "session-managers" "")
|
(lib.mesonOption "session-managers" "")
|
||||||
@ -180,7 +168,7 @@ stdenv.mkDerivation(finalAttrs: {
|
|||||||
(lib.mesonEnable "x11" x11Support)
|
(lib.mesonEnable "x11" x11Support)
|
||||||
(lib.mesonEnable "x11-xfixes" x11Support)
|
(lib.mesonEnable "x11-xfixes" x11Support)
|
||||||
(lib.mesonEnable "libcanberra" x11Support)
|
(lib.mesonEnable "libcanberra" x11Support)
|
||||||
(lib.mesonEnable "libmysofa" mysofaSupport)
|
(lib.mesonEnable "libmysofa" true)
|
||||||
(lib.mesonEnable "sdl2" false) # required only to build examples, causes dependency loop
|
(lib.mesonEnable "sdl2" false) # required only to build examples, causes dependency loop
|
||||||
(lib.mesonBool "rlimits-install" false) # installs to /etc, we won't use this anyway
|
(lib.mesonBool "rlimits-install" false) # installs to /etc, we won't use this anyway
|
||||||
(lib.mesonEnable "compress-offload" true)
|
(lib.mesonEnable "compress-offload" true)
|
||||||
|
Loading…
Reference in New Issue
Block a user