Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qgroundcontrol: some small improvements #339867

Merged
merged 7 commits into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
{ lib, stdenv, fetchFromGitHub, SDL2, qtbase, qtcharts, qtlocation, qtserialport
, qtsvg, qtquickcontrols2, qtgraphicaleffects, qtspeech, qtx11extras, qmake
, qttools, gst_all_1, wayland, pkg-config, wrapQtAppsHook }:
{
lib,
stdenv,
fetchFromGitHub,
SDL2,
libsForQt5,
gst_all_1,
wayland,
pkg-config,
}:

stdenv.mkDerivation rec {
pname = "qgroundcontrol";
version = "4.4.2";

propagatedBuildInputs = [
qtbase qtcharts qtlocation qtserialport qtsvg qtquickcontrols2
qtgraphicaleffects qtspeech qtx11extras
propagatedBuildInputs = with libsForQt5; [
qtbase
qtcharts
qtlocation
qtserialport
qtsvg
qtquickcontrols2
qtgraphicaleffects
qtspeech
qtx11extras
];

gstInputs = with gst_all_1; [
Expand All @@ -21,7 +35,13 @@ stdenv.mkDerivation rec {
];

buildInputs = [ SDL2 ] ++ gstInputs ++ propagatedBuildInputs;
nativeBuildInputs = [ pkg-config qmake qttools wrapQtAppsHook ];
nativeBuildInputs =
[ pkg-config ]
++ (with libsForQt5; [
qmake
qttools
wrapQtAppsHook
]);

preConfigure = ''
mkdir build
Expand Down Expand Up @@ -65,18 +85,22 @@ stdenv.mkDerivation rec {
# TODO: package mavlink so we can build from a normal source tarball
src = fetchFromGitHub {
owner = "mavlink";
repo = pname;
repo = "qgroundcontrol";
rev = "v${version}";
hash = "sha256-2Bc4uC/2e+PTsvFZ4RjnTzkOiBO9vsYHeLPkcwpDRrg=";
fetchSubmodules = true;
};

meta = with lib; {
meta = {
description = "Provides full ground station support and configuration for the PX4 and APM Flight Stacks";
homepage = "http://qgroundcontrol.com/";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ lopsided98 pandapip1 ];
homepage = "https://qgroundcontrol.com/";
changelog = "https://github.com/mavlink/qgroundcontrol/blob/master/ChangeLog.md";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
lopsided98
pandapip1
];
mainProgram = "QGroundControl";
};
}
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32787,8 +32787,6 @@ with pkgs;

wrapQemuBinfmtP = callPackage ../applications/virtualization/qemu/binfmt-p-wrapper.nix { };

qgroundcontrol = libsForQt5.callPackage ../applications/science/robotics/qgroundcontrol { };

qjackctl = libsForQt5.callPackage ../applications/audio/qjackctl { };

qimgv = libsForQt5.callPackage ../applications/graphics/qimgv { };
Expand Down