159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
31 lines
768 B
Nix
31 lines
768 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "buildkite-agent-metrics";
|
|
version = "5.9.8";
|
|
|
|
outputs = [ "out" "lambda" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "buildkite";
|
|
repo = "buildkite-agent-metrics";
|
|
rev = "v${version}";
|
|
hash = "sha256-0WcjmX3SXRfx6ged2lfNTZBWfICYVtXznR+7J/ASAFQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-i2+nefRE4BD93rG842oZj0/coamYVRMPxEHio80bdWk=";
|
|
|
|
postInstall = ''
|
|
mkdir -p $lambda/bin
|
|
mv $out/bin/lambda $lambda/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Command-line tool (and Lambda) for collecting Buildkite agent metrics";
|
|
homepage = "https://github.com/buildkite/buildkite-agent-metrics";
|
|
license = licenses.mit;
|
|
maintainers = teams.determinatesystems.members;
|
|
};
|
|
}
|