mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
Merge pull request #82622 from lopsided98/opentx-update
opentx: 2.2.1 -> 2.3.5, fix build
This commit is contained in:
commit
fcbc4151d4
|
@ -1,50 +1,38 @@
|
|||
{ stdenv, fetchFromGitHub
|
||||
, cmake, gcc-arm-embedded, binutils-arm-embedded, python
|
||||
, qt5, SDL, gtest
|
||||
{ stdenv, mkDerivation, fetchFromGitHub
|
||||
, cmake, gcc-arm-embedded, python3Packages
|
||||
, qtbase, qtmultimedia, qttranslations, SDL, gtest
|
||||
, dfu-util, avrdude
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
version = "2.2.1";
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "opentx";
|
||||
inherit version;
|
||||
version = "2.3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "opentx";
|
||||
repo = "opentx";
|
||||
rev = version;
|
||||
sha256 = "01lnnkrxach21aivnx1k1iqhih02nixh8c4nk6rpw408p13him9g";
|
||||
sha256 = "18iv3c74y9fpp1045s2l7l2dqfn9riyagrwmfwp2mmf2ccsrwz2g";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
gcc-arm-embedded binutils-arm-embedded
|
||||
];
|
||||
nativeBuildInputs = [ cmake gcc-arm-embedded python3Packages.pillow ];
|
||||
|
||||
buildInputs = with qt5; [
|
||||
python python.pkgs.pyqt4
|
||||
qtbase qtmultimedia qttranslations
|
||||
SDL
|
||||
];
|
||||
buildInputs = [ qtbase qtmultimedia qttranslations SDL ];
|
||||
|
||||
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|'
|
||||
sed -i companion/src/burnconfigdialog.cpp \
|
||||
-e 's|/usr/.*bin/dfu-util|${dfu-util}/bin/dfu-util|' \
|
||||
-e 's|/usr/.*bin/avrdude|${avrdude}/bin/avrdude|'
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DGTEST_ROOT=${gtest.src}/googletest"
|
||||
"-DQT_TRANSLATIONS_DIR=${qt5.qttranslations}/translations"
|
||||
"-DQT_TRANSLATIONS_DIR=${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"
|
||||
"-DNANO=NO"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
@ -54,11 +42,10 @@ in stdenv.mkDerivation {
|
|||
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 ];
|
||||
broken = true;
|
||||
homepage = "https://www.open-tx.org/";
|
||||
license = licenses.gpl2;
|
||||
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
|
||||
maintainers = with maintainers; [ elitak lopsided98 ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -21234,10 +21234,7 @@ in
|
|||
|
||||
opentimestamps-client = python3Packages.callPackage ../tools/misc/opentimestamps-client {};
|
||||
|
||||
opentx = callPackage ../applications/misc/opentx {
|
||||
gcc-arm-embedded = pkgsCross.arm-embedded.buildPackages.gcc;
|
||||
binutils-arm-embedded = pkgsCross.arm-embedded.buildPackages.binutils;
|
||||
};
|
||||
opentx = libsForQt5.callPackage ../applications/misc/opentx { };
|
||||
|
||||
opera = callPackage ../applications/networking/browsers/opera {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue