biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / inav-blackbox-tools / default.nix
blob228035108a81601cd7371b8300b7ce548b427287
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 {
8     owner = "iNavFlight";
9     repo = "blackbox-tools";
10     rev = "0109e2fb9b44d593e60bca4cef4098d83c55c373";
11     sha256 = "1rdlw74dqq0hahnka2w2pgvs172vway2x6v8byxl2s773l22k4ln";
12   };
14   nativeBuildInputs = [ pkg-config ];
16   buildInputs = [ cairo ];
18   installPhase = ''
19     runHook preInstall
21     mkdir -p "$out/bin"
22     cp obj/{blackbox_decode,blackbox_render,encoder_testbed} "$out/bin"
24     runHook postInstall
25   '';
27   meta = with lib; {
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
34   };