diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2024-06-09 16:40:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-09 16:40:17 +0200 |
commit | d590fceaafac9550c747faf79c473e8a9b55e8a7 (patch) | |
tree | a724da5dd50b91fe91b8735e640fefdc973eb111 | |
parent | 57e09255419d3aa47f9a6d999532a6bb46a02d74 (diff) | |
parent | fbb2d4dea97dd36905beabe0f37196f152dbdbe8 (diff) |
Merge pull request #266572 from getchoo/pkgs/clang-tidy-sarif/init
clang-tidy-sarif: init at 0.4.2
-rw-r--r-- | pkgs/by-name/cl/clang-tidy-sarif/package.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/cl/clang-tidy-sarif/package.nix b/pkgs/by-name/cl/clang-tidy-sarif/package.nix new file mode 100644 index 0000000000000..64b8da01af3f3 --- /dev/null +++ b/pkgs/by-name/cl/clang-tidy-sarif/package.nix @@ -0,0 +1,37 @@ +{ + 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 = "clang-tidy-sarif-v${version}"; + hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; + }; + + cargoHash = "sha256-NzdgfHRDgLB6sMhBflk9rACEocLP23KlZL22iAfBfh8="; + cargoBuildFlags = [ + "--package" + "clang-tidy-sarif" + ]; + cargoTestFlags = cargoBuildFlags; + + passthru = { + tests.version = testers.testVersion { package = clang-tidy-sarif; }; + }; + + meta = { + description = "A CLI tool to convert clang-tidy diagnostics into SARIF"; + mainProgram = "clang-tidy-sarif"; + homepage = "https://psastras.github.io/sarif-rs"; + maintainers = with lib.maintainers; [ getchoo ]; + license = lib.licenses.mit; + }; +} |