vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / by-name / ac / actionlint / package.nix
blob4619367ddf7efdacbeca317131475cce31817b9e
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   installShellFiles,
6   makeWrapper,
7   python3Packages,
8   ronn,
9   shellcheck,
12 let
13   version = "1.7.3";
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-IwkTiuQ3eTZMn1y0NG1jo9UrX7AmEUBRSGQ/vq/0YL8=";
26   };
28   vendorHash = "sha256-SIY79SjYYXW2slUQr2Bm9dLH8K2wE3l/TL3QP0m8GLs=";
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   };