Skip to content

Commit

Permalink
Merge pull request #327452 from getchoo/pkgs/clang-tidy-sarif/0.5.0
Browse files Browse the repository at this point in the history
clang-tidy-sarif: 0.4.2 -> 0.5.0
  • Loading branch information
pbsds authored Jul 25, 2024
2 parents 4761a13 + b77dea2 commit fd5ef84
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions pkgs/by-name/cl/clang-tidy-sarif/package.nix
Original file line number Diff line number Diff line change
@@ -1,37 +1,33 @@
{
lib,
fetchFromGitHub,
fetchCrate,
rustPlatform,
clang-tidy-sarif,
testers,
nix-update-script,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "clang-tidy-sarif";
version = "0.4.2";
version = "0.5.0";

src = fetchFromGitHub {
owner = "psastras";
repo = "sarif-rs";
rev = "clang-tidy-sarif-v${version}";
hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno=";
src = fetchCrate {
inherit pname version;
hash = "sha256-lxZtuE6hvmeX2CCO8UeGDORnCV5N7ZNiVZR+9LOCrdk=";
};

cargoHash = "sha256-NzdgfHRDgLB6sMhBflk9rACEocLP23KlZL22iAfBfh8=";
cargoBuildFlags = [
"--package"
"clang-tidy-sarif"
];
cargoTestFlags = cargoBuildFlags;
cargoHash = "sha256-R0IyXinUhIVqGal2Vt0EdU0EFyzs3KIbp/UIseWlj1Y=";

nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;

passthru = {
tests.version = testers.testVersion { package = clang-tidy-sarif; };
updateScript = nix-update-script { };
};

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 ];
mainProgram = "clang-tidy-sarif";
license = lib.licenses.mit;
};
}

0 comments on commit fd5ef84

Please sign in to comment.