-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266575 from getchoo/pkgs/shellcheck-sarif/init
shellcheck-sarif: init at 0.4.2
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
lib, | ||
fetchFromGitHub, | ||
rustPlatform, | ||
shellcheck-sarif, | ||
testers, | ||
}: | ||
rustPlatform.buildRustPackage rec { | ||
pname = "shellcheck-sarif"; | ||
version = "0.4.2"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "psastras"; | ||
repo = "sarif-rs"; | ||
rev = "${pname}-v${version}"; | ||
hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; | ||
}; | ||
|
||
cargoHash = "sha256-JuE/Z0qrS/3BRlb0jTGDfV0TYk74Q75X1wv/IERxqeQ="; | ||
cargoBuildFlags = [ | ||
"--package" | ||
pname | ||
]; | ||
cargoTestFlags = cargoBuildFlags; | ||
|
||
passthru = { | ||
tests.version = testers.testVersion { package = shellcheck-sarif; }; | ||
}; | ||
|
||
meta = { | ||
description = "A CLI tool to convert shellcheck diagnostics into SARIF"; | ||
homepage = "https://psastras.github.io/sarif-rs"; | ||
mainProgram = "shellcheck-sarif"; | ||
maintainers = with lib.maintainers; [ getchoo ]; | ||
license = lib.licenses.mit; | ||
}; | ||
} |