{ lib, buildGoModule, fetchFromGitHub, installShellFiles, makeWrapper, python3Packages, ronn, shellcheck, }: let version = "1.7.4"; in buildGoModule { pname = "actionlint"; inherit version; subPackages = [ "cmd/actionlint" ]; src = fetchFromGitHub { owner = "rhysd"; repo = "actionlint"; rev = "v${version}"; hash = "sha256-NPlDD74vrVXsVgdoMHD0F3SYebH1p/RH9h1qVgLQMRw="; }; vendorHash = "sha256-pKmN5duaSp5EuQ8L2SWduh3g1gbQq2jrUaKsQuEuy98="; 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 = { 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 = lib.licenses.mit; maintainers = with lib.maintainers; [ momeemt ]; mainProgram = "actionlint"; }; }