Merge pull request #266558 from getchoo/pkgs/clippy-sarif/init

clippy-sarif: init at 0.4.2
This commit is contained in:
Sandro 2024-06-26 00:31:44 +02:00 committed by GitHub
commit 943264ee9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,39 @@
{
lib,
fetchFromGitHub,
rustPlatform,
clippy,
clippy-sarif,
testers,
}:
rustPlatform.buildRustPackage rec {
pname = "clippy-sarif";
version = "0.4.2";
src = fetchFromGitHub {
owner = "psastras";
repo = "sarif-rs";
rev = "clippy-sarif-v${version}";
hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno=";
};
cargoHash = "sha256-F3NrqkqLdvMRIuozCMMqwlrrf5QrnmcEhy4TGSzPhiU=";
cargoBuildFlags = [
"--package"
"clippy-sarif"
];
cargoTestFlags = cargoBuildFlags;
passthru = {
tests.version = testers.testVersion { package = clippy-sarif; };
};
meta = {
description = "A CLI tool to convert clippy diagnostics into SARIF";
mainProgram = "clippy-sarif";
homepage = "https://psastras.github.io/sarif-rs";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ getchoo ];
inherit (clippy.meta) platforms;
};
}