nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 52 lines 1.6 kB view raw
1{ lib, mkDerivation, fetchFromGitHub 2, cmake, gcc-arm-embedded, python3Packages 3, qtbase, qtmultimedia, qttranslations, SDL, gtest 4, dfu-util, avrdude 5}: 6 7mkDerivation rec { 8 pname = "opentx"; 9 version = "2.3.15"; 10 11 src = fetchFromGitHub { 12 owner = "opentx"; 13 repo = "opentx"; 14 rev = "release/${version}"; 15 sha256 = "sha256-F3zykJhKuIpLQSTjn7mcdjEmgRAlwCZpkTaKQR9ve3g="; 16 }; 17 18 nativeBuildInputs = [ cmake gcc-arm-embedded python3Packages.pillow ]; 19 20 buildInputs = [ qtbase qtmultimedia qttranslations SDL ]; 21 22 postPatch = '' 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|' 26 ''; 27 28 cmakeFlags = [ 29 "-DGTEST_ROOT=${gtest.src}/googletest" 30 "-DQT_TRANSLATIONS_DIR=${qttranslations}/translations" 31 # XXX I would prefer to include these here, though we will need to file a bug upstream to get that changed. 32 #"-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util" 33 #"-DAVRDUDE_PATH=${avrdude}/bin/avrdude" 34 35 # file RPATH_CHANGE could not write new RPATH 36 "-DCMAKE_SKIP_BUILD_RPATH=ON" 37 ]; 38 39 meta = with lib; { 40 description = "OpenTX Companion transmitter support software"; 41 longDescription = '' 42 OpenTX Companion is used for many different tasks like loading OpenTX 43 firmware to the radio, backing up model settings, editing settings and 44 running radio simulators. 45 ''; 46 homepage = "https://www.open-tx.org/"; 47 license = licenses.gpl2Only; 48 platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ]; 49 maintainers = with maintainers; [ elitak lopsided98 ]; 50 }; 51 52}