2020-06-18 07:06:33 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "buildkite-cli";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.0.0";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "buildkite";
|
|
|
|
repo = "cli";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-4MUgyUKyycsreAMVtyKJFpQOHvI6JJSn7TUZtbQANyc=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
vendorSha256 = "sha256-3x7yJenJ2BHdqVPaBaqfFVeOSJZ/VRNF/TTfSsw+2os=";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .buildkite/steps/{lint,run-local}.sh
|
|
|
|
'';
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
subPackages = [ "cmd/bk" ];
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.VERSION=${version}" ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A command line interface for Buildkite";
|
|
|
|
homepage = "https://github.com/buildkite/cli";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ groodt ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "bk";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
}
|