2023-11-10 00:37:14 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-07-15 18:13:56 +00:00
|
|
|
fetchCrate,
|
2023-11-10 00:37:14 +00:00
|
|
|
rustPlatform,
|
|
|
|
clippy,
|
2024-07-15 18:15:39 +00:00
|
|
|
nix-update-script,
|
2024-07-15 18:25:42 +00:00
|
|
|
versionCheckHook,
|
2023-11-10 00:37:14 +00:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "clippy-sarif";
|
2024-08-01 10:32:48 +00:00
|
|
|
version = "0.6.0";
|
2023-11-10 00:37:14 +00:00
|
|
|
|
2024-07-15 18:13:56 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-08-01 10:32:48 +00:00
|
|
|
hash = "sha256-VFwLys5lVVQw3dmfY1nrI+Bi0tm7kjD2/1c1DLczLwk=";
|
2023-11-10 00:37:14 +00:00
|
|
|
};
|
|
|
|
|
2024-08-01 10:32:48 +00:00
|
|
|
cargoHash = "sha256-zktbOyBa200YSZBuLs3xU95bh9kvj5XZQKb7tpiTs1I=";
|
2023-11-10 00:37:14 +00:00
|
|
|
|
2024-07-15 18:25:42 +00:00
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
doInstallCheck = true;
|
|
|
|
|
2023-11-10 00:37:14 +00:00
|
|
|
passthru = {
|
2024-07-15 18:15:39 +00:00
|
|
|
updateScript = nix-update-script { };
|
2023-11-10 00:37:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A CLI tool to convert clippy diagnostics into SARIF";
|
|
|
|
homepage = "https://psastras.github.io/sarif-rs";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
2024-07-15 18:15:39 +00:00
|
|
|
mainProgram = "clippy-sarif";
|
2023-11-10 00:37:14 +00:00
|
|
|
inherit (clippy.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|