3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/act/default.nix

27 lines
704 B
Nix
Raw Normal View History

2020-03-21 09:22:00 +00:00
{ stdenv, fetchFromGitHub, buildGoModule, Security }:
2019-12-26 14:52:26 +00:00
buildGoModule rec {
pname = "act";
2020-03-13 11:46:08 +00:00
version = "0.2.6";
2019-12-26 14:52:26 +00:00
src = fetchFromGitHub {
owner = "nektos";
repo = pname;
rev = "v${version}";
2020-03-13 11:46:08 +00:00
sha256 = "0l7id483006mnii4rlcff4p0ricd8a2n24sf74a9b387x0akpbsn";
2019-12-26 14:52:26 +00:00
};
2020-03-21 09:22:00 +00:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
2020-03-13 11:46:08 +00:00
modSha256 = "04s4p9j6j7gw1s4v271zwzvdny7dvjaazd2pihmyjfik95xmwx9r";
2019-12-26 14:52:26 +00:00
2020-03-04 00:27:41 +00:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
2020-03-21 09:22:00 +00:00
meta = with stdenv.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";
2019-12-26 14:52:26 +00:00
license = licenses.mit;
maintainers = with maintainers; [ filalex77 ];
};
}