depot/third_party/nixpkgs/pkgs/development/tools/continuous-integration/buildkite-cli/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

33 lines
778 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "buildkite-cli";
version = "2.0.0";
src = fetchFromGitHub {
owner = "buildkite";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-4MUgyUKyycsreAMVtyKJFpQOHvI6JJSn7TUZtbQANyc=";
};
vendorSha256 = "sha256-3x7yJenJ2BHdqVPaBaqfFVeOSJZ/VRNF/TTfSsw+2os=";
doCheck = false;
postPatch = ''
patchShebangs .buildkite/steps/{lint,run-local}.sh
'';
subPackages = [ "cmd/bk" ];
ldflags = [ "-s" "-w" "-X main.VERSION=${version}" ];
meta = with lib; {
description = "A command line interface for Buildkite";
homepage = "https://github.com/buildkite/cli";
license = licenses.mit;
maintainers = with maintainers; [ groodt ];
mainProgram = "bk";
};
}