anchor.diff:    '';
   
     # TODO: package mavlink so we can build from a normal source tarball
  -  src = fetchgit {
  -    url = "https://github.com/mavlink/qgroundcontrol.git";
  +  src = fetchFromGitHub {
  +    owner = "mavlink";
  +    repo = pname;
       rev = "v${version}";
  -    sha256 = "0jr9jpjqdwizsvh9zm0fdp8k2r4536m40dxrn30fbr3ba8vnzkgq";
  +    sha256 = "0fwibgb9wmxk2zili5vsibi2q6pk1gna21870y5abx4scbvhgq68";
       fetchSubmodules = true;
     };
   
  
positive.code: 
  mkDerivation rec {
    pname = "qgroundcontrol";
    version = "4.0.8";
  
    qtInputs = [
      qtbase qtcharts qtlocation qtserialport qtsvg qtquickcontrols2
  
negative.code: { lib, mkDerivation, fetchFromGitHub, SDL2
  , qtbase, qtcharts, qtlocation, qtserialport, qtsvg, qtquickcontrols2
  , qtgraphicaleffects, qtspeech, qtx11extras, qmake, qttools
  , gst_all_1, wayland, pkgconfig
  