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

26 lines
694 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2019-12-26 15:52:26 +01:00
buildGoModule rec {
pname = "act";
2020-06-26 03:35:02 +02:00
version = "0.2.10";
2019-12-26 15:52:26 +01:00
src = fetchFromGitHub {
owner = "nektos";
repo = pname;
rev = "v${version}";
2020-06-26 03:35:02 +02:00
sha256 = "0xmrb8wbxkb52l2c7fxxy5wa9lsl591fl65zicv0nrbil36q4wfd";
2019-12-26 15:52:26 +01:00
};
2020-05-30 11:20:00 +02:00
vendorSha256 = "0qf26g0a2j1mbzlc7xjackww22w9bl1x0iw3q1x6kq7fp8xiwhdn";
2019-12-26 15:52:26 +01:00
2020-03-04 01:27:41 +01:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
meta = with lib; {
2019-12-26 15:52:26 +01:00
description = "Run your GitHub Actions locally";
2020-03-04 01:27:41 +01:00
homepage = "https://github.com/nektos/act";
2020-05-30 11:20:00 +02:00
changelog = "https://github.com/nektos/act/releases/tag/v${version}";
2019-12-26 15:52:26 +01:00
license = licenses.mit;
maintainers = with maintainers; [ filalex77 ];
};
2020-05-30 11:20:00 +02:00
}