nixpkgs/pkgs/by-name/cl/clippy-sarif/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
808 B
Nix
Raw Normal View History

2023-11-10 00:37:14 +00:00
{
lib,
fetchCrate,
2023-11-10 00:37:14 +00:00
rustPlatform,
clippy,
2024-07-15 18:15:39 +00:00
nix-update-script,
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
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
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;
};
}