betaflight: 3.2.3 -> 3.4.0-rc4

+12 -13
+12 -13
pkgs/development/misc/stm32/betaflight/default.nix
··· 1 1 { stdenv, fetchFromGitHub 2 2 , gcc-arm-embedded, python2 3 3 , skipTargets ? [ 4 - # These targets do not build for various unexplored reasons 5 - # TODO ... fix them 6 - "AFROMINI" 7 - "ALIENWHOOP" 8 - "BEEBRAIN" 9 - "CJMCU" 10 - "FRSKYF3" 4 + # These targets do not build, for the reasons listed, along with the last version checked. 5 + # Probably all of the issues with these targets need to be addressed upstream. 6 + "AG3X" # 3.4.0-rc4: has not specified a valid STM group, must be one of F1, F3, F405, F411 or F7x5. Have you prepared a valid target.mk? 7 + "ALIENWHOOP" # 3.4.0-rc4: has not specified a valid STM group, must be one of F1, F3, F405, F411 or F7x5. Have you prepared a valid target.mk? 8 + "FURYF3" # 3.4.0-rc4: flash region overflow 9 + "OMNINXT" # 3.4.0-rc4: has not specified a valid STM group, must be one of F1, F3, F405, F411 or F7x5. Have you prepared a valid target.mk? 11 10 ]}: 12 11 13 12 let 14 13 15 - version = "3.2.3"; 14 + version = "3.4.0-rc4"; 16 15 17 16 in stdenv.mkDerivation rec { 18 17 ··· 21 20 src = fetchFromGitHub { 22 21 owner = "betaflight"; 23 22 repo = "betaflight"; 24 - rev = "v${version}"; 25 - sha256 = "0vbjyxfjxgpaiiwvj5bscrlfikzp3wnxpmc4sxcz5yw5mwb9g428"; 23 + rev = "8e9e7574481b1abba9354b24f41eb31054943785"; # Always use a commit id here! 24 + sha256 = "1wyp23p876xbfi9z6gm4xn1nwss3myvrjjjq9pd3s0vf5gkclkg5"; 26 25 }; 27 26 28 27 buildInputs = [ ··· 31 30 ]; 32 31 33 32 postPatch = '' 34 - sed -ri "s/REVISION.*=.*git log.*/REVISION = ${builtins.substring 0 9 src.rev}/" Makefile # Let's not require git in shell 33 + sed -ri "s/REVISION.*=.*git log.*/REVISION = ${builtins.substring 0 10 src.rev}/" Makefile # Simulate abbrev'd rev. 35 34 sed -ri "s/binary hex/hex/" Makefile # No need for anything besides .hex 36 35 ''; 37 36 ··· 39 38 40 39 preBuild = '' 41 40 buildFlagsArray=( 42 - "SKIP_TARGETS=${toString skipTargets}" 41 + "NOBUILD_TARGETS=${toString skipTargets}" 43 42 "GCC_REQUIRED_VERSION=$(arm-none-eabi-gcc -dumpversion)" 44 43 all 45 44 ) ··· 59 58 homepage = https://github.com/betaflight/betaflight; 60 59 license = licenses.gpl3; 61 60 maintainers = with maintainers; [ elitak ]; 62 - platforms = platforms.linux; 61 + platforms = [ "i686-linux" "x86_64-linux" ]; 63 62 }; 64 63 65 64 }