at 22.05-pre 35 lines 987 B view raw
1{ lib, buildGoModule, fetchFromGitHub, ronn, installShellFiles }: 2 3buildGoModule rec { 4 pname = "actionlint"; 5 version = "1.6.6"; 6 7 subPackages = [ "cmd/actionlint" ]; 8 9 src = fetchFromGitHub { 10 owner = "rhysd"; 11 repo = "actionlint"; 12 rev = "v${version}"; 13 sha256 = "17c6952cjdpbl70lnn34pl3njrvpqmdbgnrm1q69kx94bni1slnz"; 14 }; 15 16 vendorSha256 = "1i7442n621jmc974b73pfz1gyqw74ilpg1zz16yxqpfh5c958m7n"; 17 18 nativeBuildInputs = [ ronn installShellFiles ]; 19 20 postInstall = '' 21 ronn --roff man/actionlint.1.ronn 22 installManPage man/actionlint.1 23 ''; 24 25 ldflags = [ "-s" "-w" "-X github.com/rhysd/actionlint.version=${version}" ]; 26 27 meta = with lib; { 28 homepage = "https://rhysd.github.io/actionlint/"; 29 description = "Static checker for GitHub Actions workflow files"; 30 changelog = "https://github.com/rhysd/actionlint/raw/v${version}/CHANGELOG.md"; 31 license = licenses.mit; 32 maintainers = [ maintainers.marsam ]; 33 mainProgram = "actionlint"; 34 }; 35}