nixpkgs/pkgs/by-name/in/inav-blackbox-tools/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

36 lines
982 B
Nix

{ lib, stdenv, fetchFromGitHub, pkg-config, cairo }:
stdenv.mkDerivation rec {
pname = "inav-blackbox-tools";
version = "unstable-2021-04-22";
src = fetchFromGitHub {
owner = "iNavFlight";
repo = "blackbox-tools";
rev = "0109e2fb9b44d593e60bca4cef4098d83c55c373";
sha256 = "1rdlw74dqq0hahnka2w2pgvs172vway2x6v8byxl2s773l22k4ln";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ cairo ];
installPhase = ''
runHook preInstall
mkdir -p "$out/bin"
cp obj/{blackbox_decode,blackbox_render,encoder_testbed} "$out/bin"
runHook postInstall
'';
meta = with lib; {
description = "Tools for working with blackbox flight logs";
homepage = "https://github.com/inavflight/blackbox-tools";
license = licenses.gpl3Only;
maintainers = [];
platforms = platforms.all;
broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/inav-blackbox-tools.x86_64-darwin
};
}