summaryrefslogtreecommitdiff
path: root/pkgs/clippy-sarif/default.nix
blob: d85086215a07b2421ec40bf065446667f540a0dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  lib,
  fetchFromGitHub,
  rustPlatform,
  clippy,
}:
rustPlatform.buildRustPackage rec {
  pname = "clippy-sarif";
  version = "0.4.2";

  src = fetchFromGitHub {
    owner = "psastras";
    repo = "sarif-rs";
    rev = "${pname}-v${version}";
    hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno=";
  };

  cargoSha256 = "sha256-F3NrqkqLdvMRIuozCMMqwlrrf5QrnmcEhy4TGSzPhiU=";
  cargoBuildFlags = ["--package ${pname}"];

  doCheck = false;

  meta = with lib; {
    description = "CLI tool to convert clippy diagnostics into SARIF";
    homepage = "https://github.com/psastras/sarif-rs";
    maintainers = with maintainers; [getchoo];
    license = licenses.mit;
    inherit (clippy.meta) platforms;
  };
}