anchor.diff:  { stdenv, fetchFromGitHub, pkgconfig, autoreconfHook
  -, alsaLib, bluez, glib, sbc
  +, alsaLib, bluez, glib, sbc, dbus
   
   # optional, but useful utils
   , readline, libbsd, ncurses
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "bluez-alsa";
    version = "1.4.0";
  
    src = fetchFromGitHub {
      owner = "Arkq";
      repo = "bluez-alsa";
      rev = "v${version}";
      sha256 = "12kc2896rbir8viywd6bjwcklkwf46j4svh9viryn6kmk084nb49";
    };
  
    nativeBuildInputs = [ pkgconfig autoreconfHook ];
  
    buildInputs = [
      alsaLib bluez glib sbc
      readline libbsd ncurses
    ]
    ++ optional aacSupport fdk_aac;
  
    configureFlags = [
      "--with-alsaplugindir=\$out/lib/alsa-lib"
      "--enable-rfcomm"
      "--enable-hcitop"
    ]
    ++ optional aacSupport "--enable-aac";
  
    doCheck = false; # fails 1 of 3 tests, needs access to ALSA
  
    meta = {
      description = "Bluez 5 Bluetooth Audio ALSA Backend";
  
negative.code:     homepage = src.meta.homepage;
      license = licenses.mit;
      platforms = platforms.linux;
      maintainers = [ maintainers.oxij maintainers.lheckemann ];
    };
  
  }
  