diff options
author | Eric Litak <elitak@gmail.com> | 2017-11-26 20:02:34 -0800 |
---|---|---|
committer | Eric Litak <elitak@gmail.com> | 2018-03-01 15:59:41 -0800 |
commit | 455cef7d5eb59988a545203a804fd7a365acf32c (patch) | |
tree | d833f7df2abef11b34cd96a9281c887a04888668 /pkgs/applications/misc/opentx | |
parent | 76a01ad9d15e798fcf8e55adaa659c389a4c3fdf (diff) | |
download | nixpkgs-455cef7d5eb59988a545203a804fd7a365acf32c.tar nixpkgs-455cef7d5eb59988a545203a804fd7a365acf32c.tar.gz nixpkgs-455cef7d5eb59988a545203a804fd7a365acf32c.tar.bz2 nixpkgs-455cef7d5eb59988a545203a804fd7a365acf32c.tar.lz nixpkgs-455cef7d5eb59988a545203a804fd7a365acf32c.tar.xz nixpkgs-455cef7d5eb59988a545203a804fd7a365acf32c.tar.zst nixpkgs-455cef7d5eb59988a545203a804fd7a365acf32c.zip |
opentx: init at 2.2.1
This does not yet cross-compile the firmware images.
Diffstat (limited to 'pkgs/applications/misc/opentx')
-rw-r--r-- | pkgs/applications/misc/opentx/default.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/applications/misc/opentx/default.nix b/pkgs/applications/misc/opentx/default.nix new file mode 100644 index 00000000000..8a941a719f2 --- /dev/null +++ b/pkgs/applications/misc/opentx/default.nix @@ -0,0 +1,58 @@ +{ stdenv, fetchFromGitHub +, cmake, gcc-arm-embedded, python +, qt5, SDL, gmock +, dfu-util, avrdude +}: + +let + + version = "2.2.1"; + +in stdenv.mkDerivation { + + name = "opentx-${version}"; + + src = fetchFromGitHub { + owner = "opentx"; + repo = "opentx"; + rev = version; + sha256 = "01lnnkrxach21aivnx1k1iqhih02nixh8c4nk6rpw408p13him9g"; + }; + + enableParallelBuilding = true; + + nativeBuildInputs = [ cmake ]; + + buildInputs = with qt5; [ + gcc-arm-embedded + python python.pkgs.pyqt4 + qtbase qtmultimedia qttranslations + SDL gmock + ]; + + postPatch = '' + sed -i companion/src/burnconfigdialog.cpp -e 's|/usr/.*bin/dfu-util|${dfu-util}/bin/dfu-util|' + sed -i companion/src/burnconfigdialog.cpp -e 's|/usr/.*bin/avrdude|${avrdude}/bin/avrdude|' + ''; + + cmakeFlags = [ + "-DQT_TRANSLATIONS_DIR=${qt5.qttranslations}/translations" + # XXX I would prefer to include these here, though we will need to file a bug upstream to get that changed. + #"-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util" + #"-DAVRDUDE_PATH=${avrdude}/bin/avrdude" + ]; + + meta = with stdenv.lib; { + description = "OpenTX Companion transmitter support software"; + longDescription = '' + OpenTX Companion is used for many different tasks like loading OpenTX + firmware to the radio, backing up model settings, editing settings and + running radio simulators. + ''; + homepage = https://open-tx.org/; + license = stdenv.lib.licenses.gpl2; + platforms = [ "i686-linux" "x86_64-linux" ]; + maintainers = with maintainers; [ elitak ]; + }; + +} |