anchor.diff:    };
   
     nativeBuildInputs = [
  -    pythonPackages.python
       makeWrapper
  +    waf
     ];
   
     buildInputs = [
  
positive.code:     libsndfile
      readline
  
      dbus
      opus
    ] ++ optionals (!libOnly) [
      alsa-lib
      ffado_lib
      pythonPackages.python
      pythonPackages.dbus
    ];
  
    postPatch = ''
      sed -i svnversion_regenerate.sh \
        -e 's,/bin/bash,${bash}/bin/bash,'
    '';
  
    configurePhase = ''
      ${pythonPackages.python.interpreter} waf configure --prefix=$out \
        --dbus \
        --classic \
        ${optionalString (!libOnly) "--firewire"} \
        ${optionalString (!libOnly) "--alsa"} \
        --autostart=dbus \
    '';
  
    buildPhase = ''
      python waf build
    '';
  
    installPhase = ''
      python waf install
    '' + (if libOnly then ''
      rm -rf $out/{bin,share}
      rm -rf $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";
  
negative.code:     optionalString;
  
    libOnly = prefix == "lib";
    libBool = if libOnly then "no" else "yes";
  
    version = "2017-12-20";
  in
  