emscripten: 3.1.64 -> 3.1.73 (#343743)
[NixPkgs.git] / pkgs / by-name / ac / actionlint / package.nix
blob48ee5e6013957e21ce67362eb937c771abe413b0
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   installShellFiles,
6   makeWrapper,
7   python3Packages,
8   ronn,
9   shellcheck,
12 let
13   version = "1.7.4";
15 buildGoModule {
16   pname = "actionlint";
17   inherit version;
19   subPackages = [ "cmd/actionlint" ];
21   src = fetchFromGitHub {
22     owner = "rhysd";
23     repo = "actionlint";
24     rev = "v${version}";
25     hash = "sha256-NPlDD74vrVXsVgdoMHD0F3SYebH1p/RH9h1qVgLQMRw=";
26   };
28   vendorHash = "sha256-pKmN5duaSp5EuQ8L2SWduh3g1gbQq2jrUaKsQuEuy98=";
30   nativeBuildInputs = [
31     makeWrapper
32     ronn
33     installShellFiles
34   ];
36   postInstall = ''
37     ronn --roff man/actionlint.1.ronn
38     installManPage man/actionlint.1
39     wrapProgram "$out/bin/actionlint" \
40       --prefix PATH : ${
41         lib.makeBinPath [
42           python3Packages.pyflakes
43           shellcheck
44         ]
45       }
46   '';
48   ldflags = [
49     "-s"
50     "-w"
51     "-X github.com/rhysd/actionlint.version=${version}"
52   ];
54   meta = {
55     homepage = "https://rhysd.github.io/actionlint/";
56     description = "Static checker for GitHub Actions workflow files";
57     changelog = "https://github.com/rhysd/actionlint/raw/v${version}/CHANGELOG.md";
58     license = lib.licenses.mit;
59     maintainers = with lib.maintainers; [ momeemt ];
60     mainProgram = "actionlint";
61   };