summary refs log tree commit diff
path: root/pkgs/development/tools/analysis/actionlint
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2021-10-01 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2021-10-01 04:20:00 +0000
commitbb4b8544590662af247f9fc19249275714f4897e (patch)
treebf04ec9fb064552925644db9c493f8764ac05873 /pkgs/development/tools/analysis/actionlint
parent584cfacc9651b5ab2a5af0ea1bbc93e0daf5c250 (diff)
actionlint: init at 1.6.4
Diffstat (limited to 'pkgs/development/tools/analysis/actionlint')
-rw-r--r--pkgs/development/tools/analysis/actionlint/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/tools/analysis/actionlint/default.nix b/pkgs/development/tools/analysis/actionlint/default.nix
new file mode 100644
index 0000000000000..72c5595e28834
--- /dev/null
+++ b/pkgs/development/tools/analysis/actionlint/default.nix
@@ -0,0 +1,34 @@
+{ lib, buildGoModule, fetchFromGitHub, ronn, installShellFiles }:
+
+buildGoModule rec {
+  pname = "actionlint";
+  version = "1.6.4";
+
+  subPackages = [ "cmd/actionlint" ];
+
+  src = fetchFromGitHub {
+    owner = "rhysd";
+    repo = "actionlint";
+    rev = "v${version}";
+    sha256 = "1516892wikz3zda0la57s8nbm6459pf4vd123rv09s4nivznbmcx";
+  };
+
+  vendorSha256 = "1i7442n621jmc974b73pfz1gyqw74ilpg1zz16yxqpfh5c958m7n";
+
+  nativeBuildInputs = [ ronn installShellFiles ];
+
+  postInstall = ''
+    ronn --roff man/actionlint.1.ronn
+    installManPage man/actionlint.1
+  '';
+
+  ldflags = [ "-s" "-w" "-X github.com/rhysd/actionlint.version=${version}" ];
+
+  meta = with lib; {
+    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 = licenses.mit;
+    maintainers = [ maintainers.marsam ];
+  };
+}