apmplanner2: init at 2.0.26

I would like to see more Ground Control Stations in the nixpkgs.
This commit is contained in:
wucke13 2018-08-18 14:44:46 +02:00
parent b7e64c2190
commit b4531605c3
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ stdenv, fetchFromGitHub, qmake
, qtbase, qtscript, qtwebkit, qtserialport, qtsvg, qtdeclarative, qtquickcontrols2
, alsaLib, libsndfile, flite, openssl, udev, SDL2
}:
stdenv.mkDerivation rec {
name = "apmplanner2-${version}";
version = "2.0.26";
src = fetchFromGitHub {
owner = "ArduPilot";
repo = "apm_planner";
rev = "${version}";
sha256 = "0bnyi1r8k8ij5sq2zqv7mfbrxm0xdw97qrx3sk4rinqv2g6h6di4";
};
qtInputs = [
qtbase qtscript qtwebkit qtserialport qtsvg qtdeclarative qtquickcontrols2
];
buildInputs = [ alsaLib libsndfile flite openssl udev SDL2 ] ++ qtInputs;
nativeBuildInputs = [ qmake ];
qmakeFlags = [ "apm_planner.pro" ];
# this ugly hack is necessary, as `bin/apmplanner2` needs the contents of `share/APMPlanner2` inside of `bin/`
preFixup = "ln --relative --symbolic $out/share/APMPlanner2/* $out/bin/";
enableParallelBuilding = true;
meta = {
description = "Ground station software for autonomous vehicles";
longDescription = ''
A GUI ground control station for autonomous vehicles using the MAVLink protocol.
Includes support for the APM and PX4 based controllers.
'';
homepage = http://ardupilot.org/planner2/;
license = stdenv.lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.wucke13 ];
};
}

View file

@ -21138,6 +21138,10 @@ with pkgs;
withRootSupport = true; withRootSupport = true;
}); });
### SCIENCE/ROBOTICS
apmplanner2 = libsForQt5.callPackage ../applications/science/robotics/apmplanner2 { };
### MISC ### MISC
android-file-transfer = libsForQt5.callPackage ../tools/filesystems/android-file-transfer { }; android-file-transfer = libsForQt5.callPackage ../tools/filesystems/android-file-transfer { };