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