mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
38 lines
891 B
Nix
38 lines
891 B
Nix
{
|
|
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;
|
|
};
|
|
}
|