buildkite-agent-metrics: init at 5.2.1

authored by Cole Helbling and committed by helbling.dev fa09a124 6cc55fd6

+44
+42
pkgs/servers/monitoring/buildkite-agent-metrics/default.nix
··· 1 + { lib 2 + , buildGoModule 3 + , fetchFromGitHub 4 + , fetchpatch 5 + }: 6 + buildGoModule rec { 7 + pname = "buildkite-agent-metrics"; 8 + version = "5.2.1"; 9 + 10 + outputs = [ "out" "lambda" ]; 11 + 12 + src = fetchFromGitHub { 13 + owner = "buildkite"; 14 + repo = "buildkite-agent-metrics"; 15 + rev = "v${version}"; 16 + sha256 = "XZYVCSJ/DIwoLrz37aQ3yW3RUhOhorY8L1AsAWxywcg="; 17 + }; 18 + 19 + vendorSha256 = "UIkU3i45IEXWHdiakTj7f4W9kR49k4A93msfkqeXmQQ="; 20 + 21 + patches = [ 22 + # Necessary to support passing the agent token in an env var, rather than on 23 + # the command line. Should be removed upon the next release. 24 + (fetchpatch { 25 + name = "BUILDKITE_AGENT_TOKEN-env-var.patch"; 26 + url = "https://github.com/buildkite/buildkite-agent-metrics/commit/6c40b478b95f0e05fc12b87158222a9ff68169e0.patch"; 27 + sha256 = "Y4m9qGyPIROSqOY6G6xRQfFENEG4bFF3q5dZcHI4XiY="; 28 + }) 29 + ]; 30 + 31 + postInstall = '' 32 + mkdir -p $lambda/bin 33 + mv $out/bin/lambda $lambda/bin 34 + ''; 35 + 36 + meta = with lib; { 37 + description = "A command-line tool (and Lambda) for collecting Buildkite agent metrics"; 38 + homepage = "https://github.com/buildkite/buildkite-agent-metrics"; 39 + license = licenses.mit; 40 + maintainers = teams.determinatesystems.members; 41 + }; 42 + }
+2
pkgs/top-level/all-packages.nix
··· 13206 13206 buildkite-agent2 = throw "pkgs.buildkite-agent2 has been discontinued. Please use pkgs.buildkite-agent (v3.x)"; 13207 13207 buildkite-agent3 = callPackage ../development/tools/continuous-integration/buildkite-agent { }; 13208 13208 13209 + buildkite-agent-metrics = callPackage ../servers/monitoring/buildkite-agent-metrics { }; 13210 + 13209 13211 buildkite-cli = callPackage ../development/tools/continuous-integration/buildkite-cli { }; 13210 13212 13211 13213 bump = callPackage ../development/tools/github/bump { };