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

28 lines
715 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2019-12-26 14:52:26 +00:00
buildGoModule rec {
pname = "act";
2021-08-03 19:07:42 +01:00
version = "0.2.24";
2019-12-26 14:52:26 +00:00
src = fetchFromGitHub {
owner = "nektos";
repo = pname;
rev = "v${version}";
2021-08-03 19:07:42 +01:00
sha256 = "sha256-BWSw1yELxLDMUg2LxXuy+N0IRxLQYtVdzny1FGYVXEY=";
2019-12-26 14:52:26 +00:00
};
2021-06-11 09:46:17 +01:00
vendorSha256 = "sha256-dLIsVWN/PjcH0CUYRmn4YaF8Pczf/gaWhD3lulqGiuA=";
2019-12-26 14:52:26 +00:00
doCheck = false;
2021-08-03 19:07:42 +01:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2020-03-04 00:27:41 +00:00
meta = with lib; {
2019-12-26 14:52:26 +00:00
description = "Run your GitHub Actions locally";
2020-03-04 00:27:41 +00:00
homepage = "https://github.com/nektos/act";
2020-05-30 10:20:00 +01:00
changelog = "https://github.com/nektos/act/releases/tag/v${version}";
2019-12-26 14:52:26 +00:00
license = licenses.mit;
2021-06-11 09:46:17 +01:00
maintainers = with maintainers; [ Br1ght0ne SuperSandro2000 ];
2019-12-26 14:52:26 +00:00
};
2020-05-30 10:20:00 +01:00
}