2020-06-18 07:06:33 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "buildkite-cli";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "1.2.0";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "buildkite";
|
|
|
|
repo = "cli";
|
|
|
|
rev = "v${version}";
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "sha256-AIa+hEYtPJ4CFvAFSpNJFxY+B3+DJH1Q0hL/3BD/yN0=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
vendorSha256 = "sha256-4AH9PZWSrBXi9w4Mr7dpXqDkQZGzuELG876YCaFTj2Q=";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|