2022-01-31 21:25:59 +01:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub
|
|
|
|
, cmake, gcc-arm-embedded, python3Packages
|
2023-07-29 12:57:50 +02:00
|
|
|
, qtbase, qtmultimedia, qttools, SDL, gtest
|
2022-01-31 21:25:59 +01:00
|
|
|
, dfu-util
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "edgetx";
|
2022-11-26 05:05:07 +01:00
|
|
|
version = "2.7.2";
|
2022-01-31 21:25:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "EdgeTX";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2022-11-26 05:05:07 +01:00
|
|
|
sha256 = "sha256-bKMAyONy1Udd+2nDVEMrtIsnfqrNuBVMWU7nCqvZ+3E=";
|
2022-01-31 21:25:59 +01:00
|
|
|
};
|
|
|
|
|
2023-07-29 12:57:50 +02:00
|
|
|
nativeBuildInputs = [ cmake gcc-arm-embedded python3Packages.pillow qttools ];
|
2022-01-31 21:25:59 +01:00
|
|
|
|
2023-07-29 12:57:50 +02:00
|
|
|
buildInputs = [ qtbase qtmultimedia SDL ];
|
2022-01-31 21:25:59 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i companion/src/burnconfigdialog.cpp \
|
|
|
|
-e 's|/usr/.*bin/dfu-util|${dfu-util}/bin/dfu-util|'
|
|
|
|
'';
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DGTEST_ROOT=${gtest.src}/googletest"
|
|
|
|
"-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util"
|
2022-07-15 01:50:09 +02:00
|
|
|
# file RPATH_CHANGE could not write new RPATH
|
|
|
|
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
2022-01-31 21:25:59 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|