nixpkgs/pkgs/by-name/cl/clang-tidy-sarif/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
773 B
Nix
Raw Normal View History

2023-11-10 02:34:11 +00:00
{
lib,
fetchCrate,
2023-11-10 02:34:11 +00:00
rustPlatform,
2024-07-15 18:18:35 +00:00
nix-update-script,
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
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
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;
};
}