Merge pull request #32095 from elitak/opentx

opentx: init at 2.2.0
This commit is contained in:
Jörg Thalheim 2018-03-02 15:40:06 +00:00 committed by GitHub
commit e0b5bdde90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 60 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -16827,6 +16827,8 @@ with pkgs;
openscad = callPackage ../applications/graphics/openscad {};
opentx = callPackage ../applications/misc/opentx { };
opera = callPackage ../applications/networking/browsers/opera {};
orca = python3Packages.callPackage ../applications/misc/orca {