nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 941 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 testers, 6 nix-update-script, 7 act, 8}: 9 10let 11 version = "0.2.84"; 12in 13buildGoModule { 14 pname = "act"; 15 inherit version; 16 17 src = fetchFromGitHub { 18 owner = "nektos"; 19 repo = "act"; 20 tag = "v${version}"; 21 hash = "sha256-LV6xJI2V68Uwy61mih/siw1vc90EB9maomxeKwgaB68="; 22 }; 23 24 vendorHash = "sha256-H7MVh/VbkYvivM/4zATfczib3fgk5vYHeQkHsG+cboY="; 25 26 doCheck = false; 27 28 ldflags = [ 29 "-s" 30 "-w" 31 "-X main.version=${version}" 32 ]; 33 34 passthru = { 35 tests.version = testers.testVersion { 36 package = act; 37 }; 38 39 updateScript = nix-update-script { }; 40 }; 41 42 meta = { 43 description = "Run your GitHub Actions locally"; 44 mainProgram = "act"; 45 homepage = "https://github.com/nektos/act"; 46 changelog = "https://github.com/nektos/act/releases/tag/v${version}"; 47 license = lib.licenses.mit; 48 maintainers = with lib.maintainers; [ 49 kashw2 50 ]; 51 }; 52}