{ lib, buildGoModule, fetchFromGitHub, installShellFiles, makeWrapper, python3Packages, ronn, shellcheck, }: let version = "1.7.2"; in buildGoModule { pname = "actionlint"; inherit version; subPackages = [ "cmd/actionlint" ]; src = fetchFromGitHub { owner = "rhysd"; repo = "actionlint"; rev = "v${version}"; hash = "sha256-/VhSmNwAhgAM/506MjI07KBFbkBTLpQfod49ysju+uU="; }; vendorHash = "sha256-SIY79SjYYXW2slUQr2Bm9dLH8K2wE3l/TL3QP0m8GLs="; 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"; }; }