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

28 lines
712 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2019-12-26 15:52:26 +01:00
buildGoModule rec {
pname = "act";
2021-05-07 02:28:42 +02:00
version = "0.2.22";
2019-12-26 15:52:26 +01:00
src = fetchFromGitHub {
owner = "nektos";
repo = pname;
rev = "v${version}";
2021-05-07 02:28:42 +02:00
sha256 = "sha256-a+yw7QSLNX3hO2GnFCifYMbPWYwtleUZS1AqPsxw9t8=";
2019-12-26 15:52:26 +01:00
};
2021-05-07 02:28:42 +02:00
vendorSha256 = "sha256-6jD+gY/TmO/Ot507IlTLNdWv7G4BHYlk/E9rVoRD65A=";
2019-12-26 15:52:26 +01:00
doCheck = false;
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; [ Br1ght0ne ];
2019-12-26 15:52:26 +01:00
};
2020-05-30 11:20:00 +02:00
}