2023-11-10 02:34:11 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-07-15 18:17:41 +00:00
|
|
|
fetchCrate,
|
2023-11-10 02:34:11 +00:00
|
|
|
rustPlatform,
|
|
|
|
clang-tidy-sarif,
|
2024-07-15 18:18:35 +00:00
|
|
|
nix-update-script,
|
2023-11-10 02:34:11 +00:00
|
|
|
testers,
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "clang-tidy-sarif";
|
2024-07-15 18:04:34 +00:00
|
|
|
version = "0.5.0";
|
2023-11-10 02:34:11 +00:00
|
|
|
|
2024-07-15 18:17:41 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-lxZtuE6hvmeX2CCO8UeGDORnCV5N7ZNiVZR+9LOCrdk=";
|
2023-11-10 02:34:11 +00:00
|
|
|
};
|
|
|
|
|
2024-07-15 18:17:41 +00:00
|
|
|
cargoHash = "sha256-R0IyXinUhIVqGal2Vt0EdU0EFyzs3KIbp/UIseWlj1Y=";
|
2023-11-10 02:34:11 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests.version = testers.testVersion { package = clang-tidy-sarif; };
|
2024-07-15 18:18:35 +00:00
|
|
|
updateScript = nix-update-script { };
|
2023-11-10 02:34:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A CLI tool to convert clang-tidy diagnostics into SARIF";
|
|
|
|
homepage = "https://psastras.github.io/sarif-rs";
|
|
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
2024-07-15 18:18:35 +00:00
|
|
|
mainProgram = "clang-tidy-sarif";
|
2023-11-10 02:34:11 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|