nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 cairo,
7}:
8
9stdenv.mkDerivation {
10 pname = "inav-blackbox-tools";
11 version = "unstable-2021-04-22";
12
13 src = fetchFromGitHub {
14 owner = "iNavFlight";
15 repo = "blackbox-tools";
16 rev = "0109e2fb9b44d593e60bca4cef4098d83c55c373";
17 sha256 = "1rdlw74dqq0hahnka2w2pgvs172vway2x6v8byxl2s773l22k4ln";
18 };
19
20 nativeBuildInputs = [ pkg-config ];
21
22 buildInputs = [ cairo ];
23
24 installPhase = ''
25 runHook preInstall
26
27 mkdir -p "$out/bin"
28 cp obj/{blackbox_decode,blackbox_render,encoder_testbed} "$out/bin"
29
30 runHook postInstall
31 '';
32
33 meta = {
34 description = "Tools for working with blackbox flight logs";
35 homepage = "https://github.com/inavflight/blackbox-tools";
36 license = lib.licenses.gpl3Only;
37 maintainers = [ ];
38 platforms = lib.platforms.all;
39 broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/inav-blackbox-tools.x86_64-darwin
40 };
41}