Merge pull request #266572 from getchoo/pkgs/clang-tidy-sarif/init

clang-tidy-sarif: init at 0.4.2
This commit is contained in:
Peder Bergebakken Sundt 2024-06-09 16:40:17 +02:00 committed by GitHub
commit d590fceaaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,37 @@
{
lib,
fetchFromGitHub,
rustPlatform,
clang-tidy-sarif,
testers,
}:
rustPlatform.buildRustPackage rec {
pname = "clang-tidy-sarif";
version = "0.4.2";
src = fetchFromGitHub {
owner = "psastras";
repo = "sarif-rs";
rev = "clang-tidy-sarif-v${version}";
hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno=";
};
cargoHash = "sha256-NzdgfHRDgLB6sMhBflk9rACEocLP23KlZL22iAfBfh8=";
cargoBuildFlags = [
"--package"
"clang-tidy-sarif"
];
cargoTestFlags = cargoBuildFlags;
passthru = {
tests.version = testers.testVersion { package = clang-tidy-sarif; };
};
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 ];
license = lib.licenses.mit;
};
}