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.

35 lines
807 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,
clippy-sarif,
2024-07-15 18:15:39 +00:00
nix-update-script,
2023-11-10 00:37:14 +00:00
testers,
}:
rustPlatform.buildRustPackage rec {
pname = "clippy-sarif";
version = "0.5.0";
2023-11-10 00:37:14 +00:00
src = fetchCrate {
inherit pname version;
hash = "sha256-ylfL4N1BtbB1R7+Glwtgn5E6/v3wQ6oXWdmeyKNHdOw=";
2023-11-10 00:37:14 +00:00
};
cargoHash = "sha256-O0bLgj7rWwbEswVMfexsBGgJyObxseOohYht21Y6HpU=";
2023-11-10 00:37:14 +00:00
passthru = {
tests.version = testers.testVersion { package = clippy-sarif; };
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;
};
}