nixpkgs/pkgs/development/tools/misc/act/default.nix

28 lines
712 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2019-12-26 06:52:26 -08:00
buildGoModule rec {
pname = "act";
2021-02-08 21:56:31 -08:00
version = "0.2.20";
2019-12-26 06:52:26 -08:00
src = fetchFromGitHub {
owner = "nektos";
repo = pname;
rev = "v${version}";
2021-02-08 21:56:31 -08:00
sha256 = "sha256-HgFm58zdaycOH65jfu3QsfFemhXymp3OTekISih+8WA=";
2019-12-26 06:52:26 -08:00
};
2021-01-28 13:17:59 -08:00
vendorSha256 = "sha256-9LEyxIBe4c938RQbLOQOsAb9MGNtjngm48P3P83BTNw=";
2019-12-26 06:52:26 -08:00
doCheck = false;
2020-03-03 16:27:41 -08:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
meta = with lib; {
2019-12-26 06:52:26 -08:00
description = "Run your GitHub Actions locally";
2020-03-03 16:27:41 -08:00
homepage = "https://github.com/nektos/act";
2020-05-30 02:20:00 -07:00
changelog = "https://github.com/nektos/act/releases/tag/v${version}";
2019-12-26 06:52:26 -08:00
license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne ];
2019-12-26 06:52:26 -08:00
};
2020-05-30 02:20:00 -07:00
}