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,
|
2024-07-15 18:18:35 +00:00
|
|
|
nix-update-script,
|
2024-07-15 18:27:02 +00:00
|
|
|
versionCheckHook,
|
2023-11-10 02:34:11 +00:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "clang-tidy-sarif";
|
2024-08-07 09:32:11 +00:00
|
|
|
version = "0.6.5";
|
2023-11-10 02:34:11 +00:00
|
|
|
|
2024-07-15 18:17:41 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-08-07 09:32:11 +00:00
|
|
|
hash = "sha256-pQbhLbDRcZJhXXY6bWGO/8mmQRwgM3tDEWKoqmsNr68=";
|
2023-11-10 02:34:11 +00:00
|
|
|
};
|
|
|
|
|
2024-08-07 09:32:11 +00:00
|
|
|
cargoHash = "sha256-K+Cle2eCH4jCLbYfOrlEXeBvFUr7dGmpKFQM1IJi7p4=";
|
2023-11-10 02:34:11 +00:00
|
|
|
|
2024-07-15 18:27:02 +00:00
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
doInstallCheck = true;
|
|
|
|
|
2023-11-10 02:34:11 +00:00
|
|
|
passthru = {
|
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;
|
|
|
|
};
|
|
|
|
}
|