depot/third_party/nixpkgs/pkgs/development/tools/analysis/actionlint/default.nix
Default email 8349aecef1 Project import generated by Copybara.
GitOrigin-RevId: 9bf75dd50b7b6d3ce6aaf6563db95f41438b9bdb
2021-10-09 16:59:57 +02:00

35 lines
987 B
Nix

{ lib, buildGoModule, fetchFromGitHub, ronn, installShellFiles }:
buildGoModule rec {
pname = "actionlint";
version = "1.6.5";
subPackages = [ "cmd/actionlint" ];
src = fetchFromGitHub {
owner = "rhysd";
repo = "actionlint";
rev = "v${version}";
sha256 = "12s9ijfvnmfbcvf5lxi2jm3j7vrn7rfkas2lib5jdih77hf9270k";
};
vendorSha256 = "1i7442n621jmc974b73pfz1gyqw74ilpg1zz16yxqpfh5c958m7n";
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 ];
mainProgram = "actionlint";
};
}