anchor.diff:      libxdg_basedir
       lsb-release
       wxGTK
  -  ] ++ stdenv.lib.optional doCheck gmock
  -    ++ gstInputs
  +  ] ++ gstInputs
       ++ pythonInputs;
   
  -  prePatch = ''
  +  postPatch = ''
       for x in debian/CMakeLists.txt include/radiotray-ng/common.hpp data/*.desktop; do
         substituteInPlace $x --replace /usr $out
       done
  
positive.code: # rt2rtng
  , python2
  # Testing
  , gmock
  # Fixup
  , wrapGAppsHook
  , makeWrapper
  
negative.code:       --replace radiotray-ng-notification radiotray-ng-on
    '';
  
    cmakeFlags = [
      "-DBUILD_TESTS=${if doCheck then "ON" else "OFF"}"
    ];
  
    enableParallelBuilding = true;
  
    checkInputs = [ gtest ];
    checkPhase = "ctest";
    # doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
    doCheck = false; # fails to pick up supplied gtest, tries to download it instead
  
    preFixup = ''
      gappsWrapperArgs+=(--suffix PATH : ${stdenv.lib.makeBinPath [ dbus ]})
  