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-07-15 18:04:22 +00:00
|
|
|
version = "0.5.0";
|
2023-11-10 00:37:14 +00:00
|
|
|
|
2024-07-15 18:13:56 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-ylfL4N1BtbB1R7+Glwtgn5E6/v3wQ6oXWdmeyKNHdOw=";
|
2023-11-10 00:37:14 +00:00
|
|
|
};
|
|
|
|
|
2024-07-15 18:13:56 +00:00
|
|
|
cargoHash = "sha256-O0bLgj7rWwbEswVMfexsBGgJyObxseOohYht21Y6HpU=";
|
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;
|
|
|
|
};
|
|
|
|
}
|