diff options
author | wucke13 <wucke13@gmail.com> | 2022-01-31 21:25:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 21:25:59 +0100 |
commit | d4e15187584c9e5fe44d6eb6fc96d121c7b61ef2 (patch) | |
tree | 535ce751a8dca72d91333ea7d07e7bd9cec4b8f8 /pkgs/applications/misc/edgetx | |
parent | 1f3c6c657decbbbf2008d5b201af1719b92d8ba6 (diff) |
edgetx: init at 2.6.0 (#152091)
Co-authored-by: Wanja Zaeske <wanja.zaeske@dlr.de>
Diffstat (limited to 'pkgs/applications/misc/edgetx')
-rw-r--r-- | pkgs/applications/misc/edgetx/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/applications/misc/edgetx/default.nix b/pkgs/applications/misc/edgetx/default.nix new file mode 100644 index 0000000000000..4dfb5b6422fe0 --- /dev/null +++ b/pkgs/applications/misc/edgetx/default.nix @@ -0,0 +1,47 @@ +{ lib, mkDerivation, fetchFromGitHub +, cmake, gcc-arm-embedded, python3Packages +, qtbase, qtmultimedia, qttranslations, SDL, gtest +, dfu-util +}: + +mkDerivation rec { + pname = "edgetx"; + version = "2.6.0"; + + src = fetchFromGitHub { + owner = "EdgeTX"; + repo = pname; + rev = "v${version}"; + fetchSubmodules = true; + sha256 = "sha256-TffHFgr3g7v4VnNSSlLITz4cYjHM6wE0aI85W1g4IFA="; + }; + + nativeBuildInputs = [ cmake gcc-arm-embedded python3Packages.pillow ]; + + buildInputs = [ qtbase qtmultimedia qttranslations SDL ]; + + postPatch = '' + sed -i companion/src/burnconfigdialog.cpp \ + -e 's|/usr/.*bin/dfu-util|${dfu-util}/bin/dfu-util|' + ''; + + cmakeFlags = [ + "-DGTEST_ROOT=${gtest.src}/googletest" + "-DQT_TRANSLATIONS_DIR=${qttranslations}/translations" + "-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util" + ]; + + meta = with lib; { + description = "EdgeTX Companion transmitter support software"; + longDescription = '' + EdgeTX Companion is used for many different tasks like loading EdgeTX + firmware to the radio, backing up model settings, editing settings and + running radio simulators. + ''; + homepage = "https://edgetx.org/"; + license = licenses.gpl2Only; + platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ]; + maintainers = with maintainers; [ elitak lopsided98 wucke13 ]; + }; + +} |