anchor.diff:        --replace radiotray-ng-notification radiotray-ng-on
     '';
   
  -  cmakeFlags = stdenv.lib.optional doCheck "-DBUILD_TESTS=ON";
  +  cmakeFlags = [
  +    "-DBUILD_TESTS=${if doCheck then "ON" else "OFF"}"
  +  ];
   
     enableParallelBuilding = true;
   
  - # XXX: as of 0.2.2, tries to download gmock instead of checking for provided
  -  doCheck = false;
  -
  +  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 ]})
  
positive.code: # rt2rtng
  , python2
  # Testing
  , gmock
  # Fixup
  , wrapGAppsHook
  , makeWrapper
  
negative.code:     libxdg_basedir
      lsb-release
      wxGTK
    ] ++ gstInputs
      ++ pythonInputs;
  
    postPatch = ''
      for x in debian/CMakeLists.txt include/radiotray-ng/common.hpp data/*.desktop; do
        substituteInPlace $x --replace /usr $out
      done
  