Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 53 lines 957 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.79"; 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-tIp9iG8SCppg+tX/KdvAON5fKAHAlU01GSJEgvm2JSg="; 22 }; 23 24 vendorHash = "sha256-wMtRpFUOMia7ZbuKUUkkcr2Gi88fiZydqFSVSAdiKdo="; 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 Br1ght0ne 50 kashw2 51 ]; 52 }; 53}