anchor.diff:    ];
   
     installPhase = ''
  +    runHook preInstall
  +
       cd ..
   
       mkdir -p $out/share/applications
  
positive.code: 
      mkdir -p $out/share/pixmaps
      cp -v resources/icons/qgroundcontrol.png $out/share/pixmaps
    '';
  
    postInstall = ''
      wrapProgram "$out/bin/qgroundcontrol" \
        --prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
    '';
  
    # TODO: package mavlink so we can build from a normal source tarball
    src = fetchgit {
      url = "https://github.com/mavlink/qgroundcontrol.git";
      rev = "v${version}";
      sha256 = "05zy6w9lwwh254wa8c6wysa67kk0flywcvipii9b1rmy47slflhs";
      fetchSubmodules = true;
    };
  
  
negative.code:     homepage = "http://qgroundcontrol.org/";
      license = licenses.gpl3Plus;
      platforms = platforms.linux;
      maintainers = with maintainers; [ lopsided98 ];
    };
  }
  