1 { lib, stdenv, fetchFromGitHub, pkg-config, cairo }:
3 stdenv.mkDerivation rec {
4 pname = "inav-blackbox-tools";
5 version = "unstable-2021-04-22";
7 src = fetchFromGitHub {
9 repo = "blackbox-tools";
10 rev = "0109e2fb9b44d593e60bca4cef4098d83c55c373";
11 sha256 = "1rdlw74dqq0hahnka2w2pgvs172vway2x6v8byxl2s773l22k4ln";
14 nativeBuildInputs = [ pkg-config ];
16 buildInputs = [ cairo ];
22 cp obj/{blackbox_decode,blackbox_render,encoder_testbed} "$out/bin"
28 description = "Tools for working with blackbox flight logs";
29 homepage = "https://github.com/inavflight/blackbox-tools";
30 license = licenses.gpl3Only;
31 maintainers = with maintainers; [ expipiplus1 ];
32 platforms = platforms.all;
33 broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/inav-blackbox-tools.x86_64-darwin