anchor.diff:      "-Dasyncns=${if !libOnly then "enabled" else "disabled"}"
       "-Davahi=${if zeroconfSupport then "enabled" else "disabled"}"
       "-Dbluez5=${if !libOnly then "enabled" else "disabled"}"
  -    "-Dbluez5-gstreamer=disabled"
  +    # advanced bluetooth audio codecs are provided by gstreamer
  +    "-Dbluez5-gstreamer=${if (!libOnly && bluetoothSupport) then "enabled" else "disabled"}"
       "-Ddatabase=simple"
       "-Ddoxygen=false"
       "-Delogind=disabled"
  
positive.code: , avahi, libjack2, libasyncns, lirc, dbus
  , sbc, bluez5, udev, openssl, fftwFloat
  , soxr, speexdsp, systemd, webrtc-audio-processing
  , check, meson, ninja, m4
  
  , x11Support ? false
  
  
negative.code:   outputs = [ "out" "dev" ];
  
    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;
  
    propagatedBuildInputs =
      lib.optionals stdenv.isLinux [ libcap ];
  