nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, fetchFromGitHub
3, buildGoModule
4}:
5
6buildGoModule rec {
7 pname = "act";
8 version = "0.2.46";
9
10 src = fetchFromGitHub {
11 owner = "nektos";
12 repo = pname;
13 rev = "refs/tags/v${version}";
14 hash = "sha256-74ap3UgAFrt/ZrSMECdL3Mu26/53VWUEAUnqHw3oJDU=";
15 };
16
17 vendorHash = "sha256-OYBFaosO1PKoN236pMFauC0ensnoFDlmAKVWd9OwLHU=";
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 SuperSandro2000 ];
33 };
34}