anchor.diff:    };
   
     nativeBuildInputs = [
  -    pythonPackages.python
       makeWrapper
  +    waf
     ];
   
     buildInputs = [
  
positive.code:     optionalString;
  
    libOnly = prefix == "lib";
  
    version = "2017-12-20";
  in
  
negative.code:     libsndfile
      readline
  
      celt
      dbus
      opus
    ] ++ optionals (!libOnly) [
      alsa-lib
      ffado_lib
      pythonPackages.python
      pythonPackages.dbus-python
    ];
  
    postPatch = ''
      sed -i svnversion_regenerate.sh \
        -e 's,/bin/bash,${bash}/bin/bash,'
    '' + /* Remove vendored WAF */ ''
      rm -rfv waflib/
      sed -i wscript -e '/xcode/d'
    '';
  
    wafFlags = [
      "--classic"
      "--dbus"
      "--autostart=dbus"
      "--doxygen=no"
      "--alsa=${libBool}"
      "--firewire=${libBool}"
      #"--freebob=${libBool}"  # TODO
      #"--iio=${libBool}"  # TODO
      "--winmme=no"  # Windows?
      "--celt=yes"
      "--opus=yes"
      "--samplerate=yes"
      "--sndfile=yes"
      "--readline=yes"
    ];
  
    installPhase = ''
      python waf install
    '' + (
      if libOnly then ''
        rm -rfv $out/{bin,share}
        rm -rfv $out/lib/{jack,libjacknet*,libjackserver*}
      '' else ''
        wrapProgram $out/bin/jack_control \
          --set 'PYTHONPATH' "$PYTHONPATH"
      ''
    );
  
    meta = with lib; {
      description = "JACK audio connection kit, version 2 with jackdbus";
  