mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
3e8850024d
Diff: https://github.com/rhysd/actionlint/compare/v1.7.3...v1.7.4 Changelog: https://github.com/rhysd/actionlint/raw/v1.7.4/CHANGELOG.md
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
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";
|
|
};
|
|
}
|