Merge pull request #328999 from eclairevoyant/pipewire-fix-2

pipewire: remove superfluous args

authored by K900 and committed by GitHub 3262d954 48ce9683

+36 -48
+36 -48
pkgs/development/libraries/pipewire/default.nix
··· 5 , meson 6 , ninja 7 , systemd 8 - , enableSystemd ? true 9 , pkg-config 10 , docutils 11 , doxygen ··· 15 , alsa-lib 16 , libjack2 17 , libusb1 18 - , udev 19 , libsndfile 20 , vulkanSupport ? true 21 , vulkan-headers ··· 27 , lilv 28 , makeFontsConf 29 , nixosTests 30 - , withValgrind ? lib.meta.availableOn stdenv.hostPlatform valgrind 31 , valgrind 32 - , libcameraSupport ? true 33 , libcamera 34 , libdrm 35 - , gstreamerSupport ? true 36 , gst_all_1 37 - , ffmpegSupport ? true 38 , ffmpeg 39 - , bluezSupport ? true 40 , bluez 41 , sbc 42 , libfreeaptx 43 , liblc3 44 , fdk_aac 45 , libopus 46 - , ldacbtSupport ? bluezSupport && lib.meta.availableOn stdenv.hostPlatform ldacbt 47 , ldacbt 48 - , nativeHspSupport ? true 49 - , nativeHfpSupport ? true 50 - , nativeModemManagerSupport ? true 51 , modemmanager 52 - , ofonoSupport ? true 53 - , hsphfpdSupport ? true 54 - , pulseTunnelSupport ? true 55 , libpulseaudio 56 , zeroconfSupport ? true 57 , avahi 58 , raopSupport ? true 59 , openssl 60 - , opusSupport ? true 61 , rocSupport ? true 62 , roc-toolkit 63 , x11Support ? true 64 , libcanberra 65 , xorg 66 - , mysofaSupport ? true 67 , libmysofa 68 , ffadoSupport ? x11Support && lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform 69 , ffado 70 , libselinux 71 }: 72 - 73 - # Bluetooth codec only makes sense if general bluetooth enabled 74 - assert ldacbtSupport -> bluezSupport; 75 76 stdenv.mkDerivation(finalAttrs: { 77 pname = "pipewire"; ··· 115 116 buildInputs = [ 117 alsa-lib 118 dbus 119 glib 120 libjack2 121 libusb1 122 libselinux 123 libsndfile 124 lilv 125 ncurses 126 readline 127 - ] ++ (if enableSystemd then [ systemd ] else [ udev ]) 128 ++ (if lib.meta.availableOn stdenv.hostPlatform webrtc-audio-processing_1 then [ webrtc-audio-processing_1 ] else [ webrtc-audio-processing ]) 129 - ++ lib.optionals gstreamerSupport [ gst_all_1.gst-plugins-base gst_all_1.gstreamer ] 130 - ++ lib.optionals libcameraSupport [ libcamera ] 131 - ++ lib.optional ffmpegSupport ffmpeg 132 - ++ lib.optionals bluezSupport [ bluez libfreeaptx liblc3 sbc fdk_aac libopus ] 133 - ++ lib.optional ldacbtSupport ldacbt 134 - ++ lib.optional nativeModemManagerSupport modemmanager 135 - ++ lib.optional opusSupport libopus 136 - ++ lib.optional pulseTunnelSupport libpulseaudio 137 ++ lib.optional zeroconfSupport avahi 138 ++ lib.optional raopSupport openssl 139 ++ lib.optional rocSupport roc-toolkit 140 ++ lib.optionals vulkanSupport [ libdrm vulkan-headers vulkan-loader ] 141 ++ lib.optionals x11Support [ libcanberra xorg.libX11 xorg.libXfixes ] 142 - ++ lib.optional mysofaSupport libmysofa 143 ++ lib.optional ffadoSupport ffado; 144 145 # Valgrind binary is required for running one optional test. 146 - nativeCheckInputs = lib.optional withValgrind valgrind; 147 148 mesonFlags = [ 149 (lib.mesonEnable "docs" true) ··· 151 (lib.mesonEnable "installed_tests" true) 152 (lib.mesonOption "installed_test_prefix" (placeholder "installedTests")) 153 (lib.mesonOption "libjack-path" "${placeholder "jack"}/lib") 154 - (lib.mesonEnable "libcamera" libcameraSupport) 155 (lib.mesonEnable "libffado" ffadoSupport) 156 (lib.mesonEnable "roc" rocSupport) 157 - (lib.mesonEnable "libpulse" pulseTunnelSupport) 158 (lib.mesonEnable "avahi" zeroconfSupport) 159 - (lib.mesonEnable "gstreamer" gstreamerSupport) 160 - (lib.mesonEnable "systemd" enableSystemd) 161 - (lib.mesonEnable "systemd-system-service" enableSystemd) 162 - (lib.mesonEnable "udev" (!enableSystemd)) 163 - (lib.mesonEnable "ffmpeg" ffmpegSupport) 164 - (lib.mesonEnable "pw-cat-ffmpeg" ffmpegSupport) 165 - (lib.mesonEnable "bluez5" bluezSupport) 166 - (lib.mesonEnable "bluez5-backend-hsp-native" nativeHspSupport) 167 - (lib.mesonEnable "bluez5-backend-hfp-native" nativeHfpSupport) 168 - (lib.mesonEnable "bluez5-backend-native-mm" nativeModemManagerSupport) 169 - (lib.mesonEnable "bluez5-backend-ofono" ofonoSupport) 170 - (lib.mesonEnable "bluez5-backend-hsphfpd" hsphfpdSupport) 171 # source code is not easily obtainable 172 (lib.mesonEnable "bluez5-codec-lc3plus" false) 173 - (lib.mesonEnable "bluez5-codec-lc3" bluezSupport) 174 - (lib.mesonEnable "bluez5-codec-ldac" ldacbtSupport) 175 - (lib.mesonEnable "opus" opusSupport) 176 (lib.mesonOption "sysconfdir" "/etc") 177 (lib.mesonEnable "raop" raopSupport) 178 (lib.mesonOption "session-managers" "") ··· 180 (lib.mesonEnable "x11" x11Support) 181 (lib.mesonEnable "x11-xfixes" x11Support) 182 (lib.mesonEnable "libcanberra" x11Support) 183 - (lib.mesonEnable "libmysofa" mysofaSupport) 184 (lib.mesonEnable "sdl2" false) # required only to build examples, causes dependency loop 185 (lib.mesonBool "rlimits-install" false) # installs to /etc, we won't use this anyway 186 (lib.mesonEnable "compress-offload" true)
··· 5 , meson 6 , ninja 7 , systemd 8 , pkg-config 9 , docutils 10 , doxygen ··· 14 , alsa-lib 15 , libjack2 16 , libusb1 17 , libsndfile 18 , vulkanSupport ? true 19 , vulkan-headers ··· 25 , lilv 26 , makeFontsConf 27 , nixosTests 28 , valgrind 29 , libcamera 30 , libdrm 31 , gst_all_1 32 , ffmpeg 33 , bluez 34 , sbc 35 , libfreeaptx 36 , liblc3 37 , fdk_aac 38 , libopus 39 , ldacbt 40 , modemmanager 41 , libpulseaudio 42 , zeroconfSupport ? true 43 , avahi 44 , raopSupport ? true 45 , openssl 46 , rocSupport ? true 47 , roc-toolkit 48 , x11Support ? true 49 , libcanberra 50 , xorg 51 , libmysofa 52 , ffadoSupport ? x11Support && lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform 53 , ffado 54 , libselinux 55 }: 56 57 stdenv.mkDerivation(finalAttrs: { 58 pname = "pipewire"; ··· 96 97 buildInputs = [ 98 alsa-lib 99 + bluez 100 dbus 101 + fdk_aac 102 + ffmpeg 103 glib 104 + gst_all_1.gst-plugins-base 105 + gst_all_1.gstreamer 106 + libcamera 107 libjack2 108 + libfreeaptx 109 + liblc3 110 + libmysofa 111 + libopus 112 + libpulseaudio 113 libusb1 114 libselinux 115 libsndfile 116 lilv 117 + modemmanager 118 ncurses 119 readline 120 + sbc 121 + systemd 122 + ] 123 ++ (if lib.meta.availableOn stdenv.hostPlatform webrtc-audio-processing_1 then [ webrtc-audio-processing_1 ] else [ webrtc-audio-processing ]) 124 + ++ lib.optional (lib.meta.availableOn stdenv.hostPlatform ldacbt) ldacbt 125 ++ lib.optional zeroconfSupport avahi 126 ++ lib.optional raopSupport openssl 127 ++ lib.optional rocSupport roc-toolkit 128 ++ lib.optionals vulkanSupport [ libdrm vulkan-headers vulkan-loader ] 129 ++ lib.optionals x11Support [ libcanberra xorg.libX11 xorg.libXfixes ] 130 ++ lib.optional ffadoSupport ffado; 131 132 # Valgrind binary is required for running one optional test. 133 + nativeCheckInputs = lib.optional (lib.meta.availableOn stdenv.hostPlatform valgrind) valgrind; 134 135 mesonFlags = [ 136 (lib.mesonEnable "docs" true) ··· 138 (lib.mesonEnable "installed_tests" true) 139 (lib.mesonOption "installed_test_prefix" (placeholder "installedTests")) 140 (lib.mesonOption "libjack-path" "${placeholder "jack"}/lib") 141 + (lib.mesonEnable "libcamera" true) 142 (lib.mesonEnable "libffado" ffadoSupport) 143 (lib.mesonEnable "roc" rocSupport) 144 + (lib.mesonEnable "libpulse" true) 145 (lib.mesonEnable "avahi" zeroconfSupport) 146 + (lib.mesonEnable "gstreamer" true) 147 + (lib.mesonEnable "gstreamer-device-provider" true) 148 + (lib.mesonEnable "systemd" true) 149 + (lib.mesonEnable "systemd-system-service" true) 150 + (lib.mesonEnable "udev" false) 151 + (lib.mesonEnable "ffmpeg" true) 152 + (lib.mesonEnable "pw-cat-ffmpeg" true) 153 + (lib.mesonEnable "bluez5" true) 154 + (lib.mesonEnable "bluez5-backend-hsp-native" true) 155 + (lib.mesonEnable "bluez5-backend-hfp-native" true) 156 + (lib.mesonEnable "bluez5-backend-native-mm" true) 157 + (lib.mesonEnable "bluez5-backend-ofono" true) 158 + (lib.mesonEnable "bluez5-backend-hsphfpd" true) 159 # source code is not easily obtainable 160 (lib.mesonEnable "bluez5-codec-lc3plus" false) 161 + (lib.mesonEnable "bluez5-codec-lc3" true) 162 + (lib.mesonEnable "bluez5-codec-ldac" true) 163 + (lib.mesonEnable "opus" true) 164 (lib.mesonOption "sysconfdir" "/etc") 165 (lib.mesonEnable "raop" raopSupport) 166 (lib.mesonOption "session-managers" "") ··· 168 (lib.mesonEnable "x11" x11Support) 169 (lib.mesonEnable "x11-xfixes" x11Support) 170 (lib.mesonEnable "libcanberra" x11Support) 171 + (lib.mesonEnable "libmysofa" true) 172 (lib.mesonEnable "sdl2" false) # required only to build examples, causes dependency loop 173 (lib.mesonBool "rlimits-install" false) # installs to /etc, we won't use this anyway 174 (lib.mesonEnable "compress-offload" true)