Merge pull request #327452 from getchoo/pkgs/clang-tidy-sarif/0.5.0

clang-tidy-sarif: 0.4.2 -> 0.5.0
This commit is contained in:
Peder Bergebakken Sundt 2024-07-25 23:50:14 +02:00 committed by GitHub
commit fd5ef84ee4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,37 +1,33 @@
{
lib,
fetchFromGitHub,
fetchCrate,
rustPlatform,
clang-tidy-sarif,
testers,
nix-update-script,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "clang-tidy-sarif";
version = "0.4.2";
version = "0.5.0";
src = fetchFromGitHub {
owner = "psastras";
repo = "sarif-rs";
rev = "clang-tidy-sarif-v${version}";
hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno=";
src = fetchCrate {
inherit pname version;
hash = "sha256-lxZtuE6hvmeX2CCO8UeGDORnCV5N7ZNiVZR+9LOCrdk=";
};
cargoHash = "sha256-NzdgfHRDgLB6sMhBflk9rACEocLP23KlZL22iAfBfh8=";
cargoBuildFlags = [
"--package"
"clang-tidy-sarif"
];
cargoTestFlags = cargoBuildFlags;
cargoHash = "sha256-R0IyXinUhIVqGal2Vt0EdU0EFyzs3KIbp/UIseWlj1Y=";
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru = {
tests.version = testers.testVersion { package = clang-tidy-sarif; };
updateScript = nix-update-script { };
};
meta = {
description = "A CLI tool to convert clang-tidy diagnostics into SARIF";
mainProgram = "clang-tidy-sarif";
homepage = "https://psastras.github.io/sarif-rs";
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "clang-tidy-sarif";
license = lib.licenses.mit;
};
}