anchor.diff:  , avahi, libjack2, libasyncns, lirc, dbus
   , sbc, bluez5, udev, openssl, fftwFloat
   , soxr, speexdsp, systemd, webrtc-audio-processing
  -, check, meson, ninja, m4
  +, gst_all_1
  +, check, meson, ninja, m4, wrapGAppsHook
   
   , x11Support ? false
   
  
positive.code:   outputs = [ "out" "dev" ];
  
    nativeBuildInputs = [ pkg-config meson ninja makeWrapper perlPackages.perl perlPackages.XMLParser m4 ]
      ++ lib.optionals stdenv.isLinux [ glib ];
  
    propagatedBuildInputs =
      lib.optionals stdenv.isLinux [ libcap ];
  
negative.code:       ++ lib.optional useSystemd systemd
        ++ lib.optionals stdenv.isLinux [ alsa-lib udev ]
        ++ lib.optional airtunesSupport openssl
        # 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.optional remoteControlSupport lirc
        ++ lib.optional zeroconfSupport  avahi
    );
  