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

26 lines
694 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2019-12-26 14:52:26 +00:00
buildGoModule rec {
pname = "act";
2020-06-26 01:35:02 +00:00
version = "0.2.10";
2019-12-26 14:52:26 +00:00
src = fetchFromGitHub {
owner = "nektos";
repo = pname;
rev = "v${version}";
2020-06-26 01:35:02 +00:00
sha256 = "0xmrb8wbxkb52l2c7fxxy5wa9lsl591fl65zicv0nrbil36q4wfd";
2019-12-26 14:52:26 +00:00
};
2020-05-30 09:20:00 +00:00
vendorSha256 = "0qf26g0a2j1mbzlc7xjackww22w9bl1x0iw3q1x6kq7fp8xiwhdn";
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";
2020-05-30 09:20:00 +00:00
changelog = "https://github.com/nektos/act/releases/tag/v${version}";
2019-12-26 14:52:26 +00:00
license = licenses.mit;
maintainers = with maintainers; [ filalex77 ];
};
2020-05-30 09:20:00 +00:00
}