bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
37 lines
891 B
Nix
37 lines
891 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
clang-tidy-sarif,
|
|
testers,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "clang-tidy-sarif";
|
|
version = "0.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "psastras";
|
|
repo = "sarif-rs";
|
|
rev = "clang-tidy-sarif-v${version}";
|
|
hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno=";
|
|
};
|
|
|
|
cargoHash = "sha256-NzdgfHRDgLB6sMhBflk9rACEocLP23KlZL22iAfBfh8=";
|
|
cargoBuildFlags = [
|
|
"--package"
|
|
"clang-tidy-sarif"
|
|
];
|
|
cargoTestFlags = cargoBuildFlags;
|
|
|
|
passthru = {
|
|
tests.version = testers.testVersion { package = clang-tidy-sarif; };
|
|
};
|
|
|
|
meta = {
|
|
description = "A CLI tool to convert clang-tidy diagnostics into SARIF";
|
|
mainProgram = "clang-tidy-sarif";
|
|
homepage = "https://psastras.github.io/sarif-rs";
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|