12 stdenv.mkDerivation rec {
13 pname = "qgroundcontrol";
16 propagatedBuildInputs = with libsForQt5; [
28 gstInputs = with gst_all_1; [
31 (gst-plugins-good.override { qt5Support = true; })
37 buildInputs = [ SDL2 ] ++ gstInputs ++ propagatedBuildInputs;
40 ++ (with libsForQt5; [
53 # Default install tries to copy Qt files into package
54 "CONFIG+=QGC_DISABLE_BUILD_SETUP"
55 # Tries to download x86_64-only prebuilt binaries
56 "DEFINES+=DISABLE_AIRMAP"
57 "../qgroundcontrol.pro"
65 mkdir -p $out/share/applications
66 sed 's/Exec=.*$/Exec=QGroundControl/g' --in-place deploy/qgroundcontrol.desktop
67 cp -v deploy/qgroundcontrol.desktop $out/share/applications
70 cp -v build/staging/QGroundControl "$out/bin/"
72 mkdir -p $out/share/qgroundcontrol
73 cp -rv resources/ $out/share/qgroundcontrol
75 mkdir -p $out/share/pixmaps
76 cp -v resources/icons/qgroundcontrol.png $out/share/pixmaps
82 qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
85 # TODO: package mavlink so we can build from a normal source tarball
86 src = fetchFromGitHub {
88 repo = "qgroundcontrol";
90 hash = "sha256-pHs9pRL5fAeRtDcNPCdqy4oPYyJ0mbJjLDlotFfjOl4=";
91 fetchSubmodules = true;
95 ./disable-bad-message.patch
99 description = "Provides full ground station support and configuration for the PX4 and APM Flight Stacks";
100 homepage = "https://qgroundcontrol.com/";
101 changelog = "https://github.com/mavlink/qgroundcontrol/blob/master/ChangeLog.md";
102 license = lib.licenses.gpl3Plus;
103 platforms = lib.platforms.linux;
104 maintainers = with lib.maintainers; [
108 mainProgram = "QGroundControl";