summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJoachim F <joachifm@users.noreply.github.com>2018-08-23 14:07:45 +0000
committerGitHub <noreply@github.com>2018-08-23 14:07:45 +0000
commit0d80f9659c7cda766a5309f74378aba7d4f9a304 (patch)
treeb5baae4220caa1117781768f2f2f8313af9f9bab /pkgs
parent873290154af8f374d09ac0ebd1e1e4c60ef20919 (diff)
parentb4531605c3f3be99d7e8e2ad101b09cc9b1f3a33 (diff)
downloadnixpkgs-0d80f9659c7cda766a5309f74378aba7d4f9a304.tar
nixpkgs-0d80f9659c7cda766a5309f74378aba7d4f9a304.tar.gz
nixpkgs-0d80f9659c7cda766a5309f74378aba7d4f9a304.tar.bz2
nixpkgs-0d80f9659c7cda766a5309f74378aba7d4f9a304.tar.lz
nixpkgs-0d80f9659c7cda766a5309f74378aba7d4f9a304.tar.xz
nixpkgs-0d80f9659c7cda766a5309f74378aba7d4f9a304.tar.zst
nixpkgs-0d80f9659c7cda766a5309f74378aba7d4f9a304.zip
Merge pull request #45305 from wucke13/apmplanner2
apmplanner2: init at 2.0.26
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/science/robotics/apmplanner2/default.nix40
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/science/robotics/apmplanner2/default.nix b/pkgs/applications/science/robotics/apmplanner2/default.nix
new file mode 100644
index 00000000000..7ae44418fff
--- /dev/null
+++ b/pkgs/applications/science/robotics/apmplanner2/default.nix
@@ -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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 82c68a7bcb3..86de6b19318 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -21211,6 +21211,10 @@ with pkgs;
     withRootSupport = true;
   });
 
+  ### SCIENCE/ROBOTICS
+
+  apmplanner2 = libsForQt5.callPackage ../applications/science/robotics/apmplanner2 { };
+
   ### MISC
 
   android-file-transfer = libsForQt5.callPackage ../tools/filesystems/android-file-transfer { };