|
|
|
@ -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" |
|
|
|
|