98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
39 lines
910 B
Nix
39 lines
910 B
Nix
{
|
|
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;
|
|
};
|
|
}
|