mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
34 lines
776 B
Nix
34 lines
776 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=";
|
|
};
|
|
|
|
vendorHash = "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";
|
|
};
|
|
}
|