pulseaudio: hide advanced bluetooth codecs behind default-false feature flag
pulseaudioFull enables this feature flag, but the plain pulseaudio attribute does not
This commit is contained in:
parent
7a2605e0f3
commit
d62bf28b76
|
@ -20,6 +20,7 @@
|
|||
, airtunesSupport ? false
|
||||
|
||||
, bluetoothSupport ? true
|
||||
, advancedBluetoothCodecs ? false
|
||||
|
||||
, remoteControlSupport ? false
|
||||
|
||||
|
@ -51,7 +52,7 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ pkg-config meson ninja makeWrapper perlPackages.perl perlPackages.XMLParser m4 ]
|
||||
++ lib.optionals stdenv.isLinux [ glib ]
|
||||
# gstreamer plugin discovery requires wrapping
|
||||
++ lib.optional bluetoothSupport wrapGAppsHook;
|
||||
++ lib.optional (bluetoothSupport && advancedBluetoothCodecs) wrapGAppsHook;
|
||||
|
||||
propagatedBuildInputs =
|
||||
lib.optionals stdenv.isLinux [ libcap ];
|
||||
|
@ -67,9 +68,9 @@ stdenv.mkDerivation rec {
|
|||
++ lib.optional useSystemd systemd
|
||||
++ lib.optionals stdenv.isLinux [ alsa-lib udev ]
|
||||
++ lib.optional airtunesSupport openssl
|
||||
++ lib.optionals bluetoothSupport [ bluez5 sbc ]
|
||||
# aptX and LDAC codecs are in gst-plugins-bad so far, rtpldacpay is in -good
|
||||
++ lib.optionals bluetoothSupport ([ bluez5 sbc ]
|
||||
++ (builtins.attrValues { inherit (gst_all_1) gst-plugins-bad gst-plugins-good gst-plugins-base gstreamer; }))
|
||||
++ lib.optionals (bluetoothSupport && advancedBluetoothCodecs) (builtins.attrValues { inherit (gst_all_1) gst-plugins-bad gst-plugins-good gst-plugins-base gstreamer; })
|
||||
++ lib.optional remoteControlSupport lirc
|
||||
++ lib.optional zeroconfSupport avahi
|
||||
);
|
||||
|
@ -80,7 +81,7 @@ stdenv.mkDerivation rec {
|
|||
"-Davahi=${if zeroconfSupport then "enabled" else "disabled"}"
|
||||
"-Dbluez5=${if !libOnly then "enabled" else "disabled"}"
|
||||
# advanced bluetooth audio codecs are provided by gstreamer
|
||||
"-Dbluez5-gstreamer=${if (!libOnly && bluetoothSupport) then "enabled" else "disabled"}"
|
||||
"-Dbluez5-gstreamer=${if (!libOnly && bluetoothSupport && advancedBluetoothCodecs) then "enabled" else "disabled"}"
|
||||
"-Ddatabase=simple"
|
||||
"-Ddoxygen=false"
|
||||
"-Delogind=disabled"
|
||||
|
|
|
@ -21944,6 +21944,7 @@ with pkgs;
|
|||
jackaudioSupport = true;
|
||||
airtunesSupport = true;
|
||||
bluetoothSupport = true;
|
||||
advancedBluetoothCodecs = true;
|
||||
remoteControlSupport = true;
|
||||
zeroconfSupport = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue