clang-tidy-sarif: init at 0.4.2

This commit is contained in:
seth 2023-11-09 21:34:11 -05:00
parent 47709b6fb2
commit fbb2d4dea9
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -0,0 +1,37 @@
{
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;
};
}