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

25 lines
616 B
Nix
Raw Normal View History

2019-12-26 14:52:26 +00:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "act";
2020-03-04 00:27:41 +00:00
version = "0.2.5";
2019-12-26 14:52:26 +00:00
src = fetchFromGitHub {
owner = "nektos";
repo = pname;
rev = "v${version}";
2020-03-04 00:27:41 +00:00
sha256 = "00clafq3izvfwxkb85hf6s40yfw2hpsfz3xg4da28pgh1wlqb9ps";
2019-12-26 14:52:26 +00:00
};
2020-02-26 20:13:56 +00:00
modSha256 = "0ghp61m8fxg1iwq2ypmp99cqv3n16c06v2xzg9v34299vmd89gi2";
2019-12-26 14:52:26 +00:00
2020-03-04 00:27:41 +00:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
2019-12-26 14:52:26 +00:00
meta = with lib; {
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 ];
};
}