1 { lib, mkDerivation, fetchFromGitHub, qmake
2 , qtbase, qtscript, qtwebkit, qtserialport, qtsvg, qtdeclarative, qtquickcontrols2
3 , alsa-lib, libsndfile, flite, openssl, udev, SDL2
10 src = fetchFromGitHub {
14 sha256 = "0wvbfjnnf7sh6fpgw8gimh5hgzywj3nwrgr80r782f5gayd3v2l1";
18 alsa-lib libsndfile flite openssl udev SDL2
19 qtbase qtscript qtwebkit qtserialport qtsvg qtdeclarative qtquickcontrols2
22 nativeBuildInputs = [ qmake ];
24 qmakeFlags = [ "apm_planner.pro" ];
26 # this ugly hack is necessary, as `bin/apmplanner2` needs the contents of `share/APMPlanner2` inside of `bin/`
28 ln --relative --symbolic $out/share/APMPlanner2/* $out/bin/
29 substituteInPlace $out/share/applications/apmplanner2.desktop \
34 description = "Ground station software for autonomous vehicles";
36 A GUI ground control station for autonomous vehicles using the MAVLink protocol.
37 Includes support for the APM and PX4 based controllers.
39 homepage = "https://ardupilot.org/planner2/";
40 license = lib.licenses.gpl3;
41 maintainers = with lib.maintainers; [ wucke13 ];