buildkite-agent-metrics: init at 5.2.1
This commit is contained in:
parent
6cc55fd638
commit
fa09a124a7
42
pkgs/servers/monitoring/buildkite-agent-metrics/default.nix
Normal file
42
pkgs/servers/monitoring/buildkite-agent-metrics/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
}:
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "buildkite-agent-metrics";
|
||||||
|
version = "5.2.1";
|
||||||
|
|
||||||
|
outputs = [ "out" "lambda" ];
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "buildkite";
|
||||||
|
repo = "buildkite-agent-metrics";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "XZYVCSJ/DIwoLrz37aQ3yW3RUhOhorY8L1AsAWxywcg=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "UIkU3i45IEXWHdiakTj7f4W9kR49k4A93msfkqeXmQQ=";
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Necessary to support passing the agent token in an env var, rather than on
|
||||||
|
# the command line. Should be removed upon the next release.
|
||||||
|
(fetchpatch {
|
||||||
|
name = "BUILDKITE_AGENT_TOKEN-env-var.patch";
|
||||||
|
url = "https://github.com/buildkite/buildkite-agent-metrics/commit/6c40b478b95f0e05fc12b87158222a9ff68169e0.patch";
|
||||||
|
sha256 = "Y4m9qGyPIROSqOY6G6xRQfFENEG4bFF3q5dZcHI4XiY=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $lambda/bin
|
||||||
|
mv $out/bin/lambda $lambda/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -13206,6 +13206,8 @@ in
|
||||||
buildkite-agent2 = throw "pkgs.buildkite-agent2 has been discontinued. Please use pkgs.buildkite-agent (v3.x)";
|
buildkite-agent2 = throw "pkgs.buildkite-agent2 has been discontinued. Please use pkgs.buildkite-agent (v3.x)";
|
||||||
buildkite-agent3 = callPackage ../development/tools/continuous-integration/buildkite-agent { };
|
buildkite-agent3 = callPackage ../development/tools/continuous-integration/buildkite-agent { };
|
||||||
|
|
||||||
|
buildkite-agent-metrics = callPackage ../servers/monitoring/buildkite-agent-metrics { };
|
||||||
|
|
||||||
buildkite-cli = callPackage ../development/tools/continuous-integration/buildkite-cli { };
|
buildkite-cli = callPackage ../development/tools/continuous-integration/buildkite-cli { };
|
||||||
|
|
||||||
bump = callPackage ../development/tools/github/bump { };
|
bump = callPackage ../development/tools/github/bump { };
|
||||||
|
|
Loading…
Reference in a new issue