1 { lib, mkDerivation, fetchFromGitHub
2 , cmake, gcc-arm-embedded, python3Packages
3 , qtbase, qtmultimedia, qttools, SDL, gtest
11 src = fetchFromGitHub {
14 rev = "release/${version}";
15 sha256 = "sha256-F3zykJhKuIpLQSTjn7mcdjEmgRAlwCZpkTaKQR9ve3g=";
18 nativeBuildInputs = [ cmake gcc-arm-embedded python3Packages.pillow qttools ];
20 buildInputs = [ qtbase qtmultimedia SDL ];
23 sed -i companion/src/burnconfigdialog.cpp \
24 -e 's|/usr/.*bin/dfu-util|${dfu-util}/bin/dfu-util|' \
25 -e 's|/usr/.*bin/avrdude|${avrdude}/bin/avrdude|'
29 "-DGTEST_ROOT=${gtest.src}/googletest"
30 # XXX I would prefer to include these here, though we will need to file a bug upstream to get that changed.
31 #"-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util"
32 #"-DAVRDUDE_PATH=${avrdude}/bin/avrdude"
34 # file RPATH_CHANGE could not write new RPATH
35 "-DCMAKE_SKIP_BUILD_RPATH=ON"
39 description = "OpenTX Companion transmitter support software";
41 OpenTX Companion is used for many different tasks like loading OpenTX
42 firmware to the radio, backing up model settings, editing settings and
43 running radio simulators.
45 homepage = "https://www.open-tx.org/";
46 license = licenses.gpl2Only;
47 platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
48 maintainers = with maintainers; [ elitak lopsided98 ];