mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
34 lines
773 B
Nix
34 lines
773 B
Nix
{
|
|
lib,
|
|
fetchCrate,
|
|
rustPlatform,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "clang-tidy-sarif";
|
|
version = "0.6.6";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-rZnGueaqK7h8tWwwWacvFBvJwE1li2wN9iB4DJRHJ8U=";
|
|
};
|
|
|
|
cargoHash = "sha256-mELx6UGHV+qtL1G3+xvYUaUzZbfMy0dKgai6IqdbT+A=";
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "A CLI tool to convert clang-tidy diagnostics into SARIF";
|
|
homepage = "https://psastras.github.io/sarif-rs";
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
|
mainProgram = "clang-tidy-sarif";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|