2021-10-04 12:37:57 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, ronn, installShellFiles }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "actionlint";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "1.6.9";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/actionlint" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhysd";
|
|
|
|
repo = "actionlint";
|
|
|
|
rev = "v${version}";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-UDa/qFtRTED6d+lPbjNknX9qFZ3QZ9jiD0ByvLsGARk=";
|
2021-10-04 12:37:57 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
vendorSha256 = "sha256-0tytdTZxnWYl8AxaquF0ArY3dy51j8H2kzw69qcSHzk=";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ ronn installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ronn --roff man/actionlint.1.ronn
|
|
|
|
installManPage man/actionlint.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/rhysd/actionlint.version=${version}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://rhysd.github.io/actionlint/";
|
|
|
|
description = "Static checker for GitHub Actions workflow files";
|
|
|
|
changelog = "https://github.com/rhysd/actionlint/raw/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
2021-10-09 14:59:57 +00:00
|
|
|
mainProgram = "actionlint";
|
2021-10-04 12:37:57 +00:00
|
|
|
};
|
|
|
|
}
|