1{ lib
2, fetchFromGitHub
3, buildGoModule
4}:
5
6buildGoModule rec {
7 pname = "act";
8 version = "0.2.54";
9
10 src = fetchFromGitHub {
11 owner = "nektos";
12 repo = pname;
13 rev = "refs/tags/v${version}";
14 hash = "sha256-1DYK47pucEh423ySyBy3hwi6QeB/nNQvwapEJZYRX8E=";
15 };
16
17 vendorHash = "sha256-45UPm7ThTSRTgzaD4tXoTaeT4hRlMKn01mvgJS1I7zI=";
18
19 doCheck = false;
20
21 ldflags = [
22 "-s"
23 "-w"
24 "-X main.version=${version}"
25 ];
26
27 meta = with lib; {
28 description = "Run your GitHub Actions locally";
29 homepage = "https://github.com/nektos/act";
30 changelog = "https://github.com/nektos/act/releases/tag/v${version}";
31 license = licenses.mit;
32 maintainers = with maintainers; [ Br1ght0ne kashw2 ];
33 };
34}