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

25 lines
616 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2019-12-26 14:52:26 +00:00
buildGoModule rec {
pname = "act";
2020-04-28 10:20:00 +01:00
version = "0.2.8";
2019-12-26 14:52:26 +00:00
src = fetchFromGitHub {
owner = "nektos";
repo = pname;
rev = "v${version}";
2020-04-28 10:20:00 +01:00
sha256 = "14ird8z8f467spa0kdzjf6lq7pipq7rwxrdk6ppv7y1fxw96qm9x";
2019-12-26 14:52:26 +00:00
};
2020-04-28 10:20:00 +01:00
modSha256 = "09q8dh4g4k0y7mrhwyi9py7zdiipmq91j3f32cn635v2xw6zyg2k";
2019-12-26 14:52:26 +00:00
2020-03-04 00:27:41 +00:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
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";
2019-12-26 14:52:26 +00:00
license = licenses.mit;
maintainers = with maintainers; [ filalex77 ];
};
}