mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, makeWrapper
|
|
, python3Packages
|
|
, ronn
|
|
, shellcheck
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "actionlint";
|
|
version = "1.6.22";
|
|
|
|
subPackages = [ "cmd/actionlint" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rhysd";
|
|
repo = "actionlint";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Gkhk6lI10pUuZN09BDhNWfTjVdc7kN6KQjgc3gFrobk=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-vWU3tEC+ZlrrTnX3fbuEuZRoSg1KtfpgpXmK4+HWrNY=";
|
|
|
|
nativeBuildInputs = [ makeWrapper ronn installShellFiles ];
|
|
|
|
postInstall = ''
|
|
ronn --roff man/actionlint.1.ronn
|
|
installManPage man/actionlint.1
|
|
wrapProgram "$out/bin/actionlint" \
|
|
--prefix PATH : ${lib.makeBinPath [ python3Packages.pyflakes shellcheck ]}
|
|
'';
|
|
|
|
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 ];
|
|
mainProgram = "actionlint";
|
|
};
|
|
}
|