mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
Merge pull request #327452 from getchoo/pkgs/clang-tidy-sarif/0.5.0
clang-tidy-sarif: 0.4.2 -> 0.5.0
This commit is contained in:
commit
fd5ef84ee4
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user