2024-06-20 14:57:18 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-07-27 06:49:29 +00:00
|
|
|
fetchCrate,
|
2024-06-20 14:57:18 +00:00
|
|
|
rustPlatform,
|
2024-07-27 06:49:29 +00:00
|
|
|
nix-update-script,
|
|
|
|
versionCheckHook,
|
2024-06-20 14:57:18 +00:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "clang-tidy-sarif";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.6.6";
|
2024-06-20 14:57:18 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-rZnGueaqK7h8tWwwWacvFBvJwE1li2wN9iB4DJRHJ8U=";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-mELx6UGHV+qtL1G3+xvYUaUzZbfMy0dKgai6IqdbT+A=";
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
doInstallCheck = true;
|
2024-06-20 14:57:18 +00:00
|
|
|
|
|
|
|
passthru = {
|
2024-07-27 06:49:29 +00:00
|
|
|
updateScript = nix-update-script { };
|
2024-06-20 14:57:18 +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-27 06:49:29 +00:00
|
|
|
mainProgram = "clang-tidy-sarif";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|