blob: 551530dcc9c350fdd0906e6c42843aa7e16f20ff (
plain) (
blame)
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
31
32
33
34
35
36
37
38
39
|
{
lib,
fetchFromGitHub,
rustPlatform,
clippy,
clippy-sarif,
testers,
}:
rustPlatform.buildRustPackage rec {
pname = "clippy-sarif";
version = "0.4.2";
src = fetchFromGitHub {
owner = "psastras";
repo = "sarif-rs";
rev = "clippy-sarif-v${version}";
hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno=";
};
cargoHash = "sha256-F3NrqkqLdvMRIuozCMMqwlrrf5QrnmcEhy4TGSzPhiU=";
cargoBuildFlags = [
"--package"
"clippy-sarif"
];
cargoTestFlags = cargoBuildFlags;
passthru = {
tests.version = testers.testVersion { package = clippy-sarif; };
};
meta = {
description = "A CLI tool to convert clippy diagnostics into SARIF";
mainProgram = "clippy-sarif";
homepage = "https://psastras.github.io/sarif-rs";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ getchoo ];
inherit (clippy.meta) platforms;
};
}
|