betaflight-configurator: reduce size

This reduces the size of the output from 512.5M to 233.9M.

+7
+7
pkgs/applications/science/robotics/betaflight-configurator/default.nix
··· 19 19 sha256 = "sha256-9FzMyBIR2u1zXHtTWJABM6RF1+OyjYdEPlRwtig9blI="; 20 20 }; 21 21 22 + # remove large unneeded files 23 + postUnpack = '' 24 + find -name "lib*.so" -delete 25 + ''; 26 + 22 27 nativeBuildInputs = [ wrapGAppsHook unzip ]; 23 28 24 29 buildInputs = [ gsettings-desktop-schemas gtk3 ]; 25 30 26 31 installPhase = '' 32 + runHook preInstall 27 33 mkdir -p $out/bin \ 28 34 $out/opt/${pname} 29 35 ··· 32 38 cp -r ${desktopItem}/share/applications $out/share/ 33 39 34 40 makeWrapper ${nwjs}/bin/nw $out/bin/${pname} --add-flags $out/opt/${pname} 41 + runHook postInstall 35 42 ''; 36 43 37 44 meta = with lib; {