diff options
| author | seth <[email protected]> | 2023-12-24 04:20:53 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-24 05:18:20 -0500 |
| commit | 0fc48fd45f756534648d989f5a2c4f3060464218 (patch) | |
| tree | 41293f12d3de3bd9f186785242b96addcc4d30b1 /pkgs/clang-tidy-sarif.nix | |
| parent | 20993feb4a35eb279beab4a7af2c993f5fb620ce (diff) | |
pkgs: auto-import directories *and* files
Diffstat (limited to 'pkgs/clang-tidy-sarif.nix')
| -rw-r--r-- | pkgs/clang-tidy-sarif.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/clang-tidy-sarif.nix b/pkgs/clang-tidy-sarif.nix new file mode 100644 index 0000000..12dfe55 --- /dev/null +++ b/pkgs/clang-tidy-sarif.nix @@ -0,0 +1,36 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + clang-tidy-sarif, + testers, +}: +rustPlatform.buildRustPackage rec { + pname = "clang-tidy-sarif"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "psastras"; + repo = "sarif-rs"; + rev = "${pname}-v${version}"; + hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; + }; + + cargoSha256 = "sha256-NzdgfHRDgLB6sMhBflk9rACEocLP23KlZL22iAfBfh8="; + cargoBuildFlags = ["--package" pname]; + cargoTestFlags = cargoBuildFlags; + + passthru = { + tests.version = testers.testVersion { + package = clang-tidy-sarif; + }; + }; + + meta = with lib; { + mainProgram = "clang-tidy-sarif"; + description = "A CLI tool to convert clang-tidy diagnostics into SARIF"; + homepage = "https://psastras.github.io/sarif-rs"; + maintainers = with maintainers; [getchoo]; + license = licenses.mit; + }; +} |
