2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, makeWrapper
|
|
|
|
, python3Packages
|
|
|
|
, ronn
|
|
|
|
, shellcheck
|
|
|
|
}:
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "actionlint";
|
2022-11-02 22:02:43 +00:00
|
|
|
version = "1.6.22";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/actionlint" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhysd";
|
|
|
|
repo = "actionlint";
|
|
|
|
rev = "v${version}";
|
2022-11-02 22:02:43 +00:00
|
|
|
sha256 = "sha256-Gkhk6lI10pUuZN09BDhNWfTjVdc7kN6KQjgc3gFrobk=";
|
2021-10-04 12:37:57 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
vendorSha256 = "sha256-vWU3tEC+ZlrrTnX3fbuEuZRoSg1KtfpgpXmK4+HWrNY=";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ronn installShellFiles ];
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ronn --roff man/actionlint.1.ronn
|
|
|
|
installManPage man/actionlint.1
|
2022-03-30 09:31:56 +00:00
|
|
|
wrapProgram "$out/bin/actionlint" \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ python3Packages.pyflakes shellcheck ]}
|
2021-10-04 12:37:57 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|