Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / fastly-exporter.nix
blob277d2a96d32ce2397e69618d46d65af5fad4ee74
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , nixosTests
5 }:
7 buildGoModule rec {
8   pname = "fastly-exporter";
9   version = "9.0.0";
11   src = fetchFromGitHub {
12     owner = "fastly";
13     repo = "fastly-exporter";
14     rev = "v${version}";
15     hash = "sha256-H7EaNQmgrRomIQo2xm2Qqkud0LMSYFshNv54lRdrEyw=";
16   };
18   vendorHash = "sha256-k/n9muWFtTBv8PxMdevFBeTtAOIiCDrK3GoCGeMtBn4=";
20   passthru.tests = {
21     inherit (nixosTests.prometheus-exporters) fastly;
22   };
24   meta = with lib; {
25     description = "Prometheus exporter for the Fastly Real-time Analytics API";
26     homepage = "https://github.com/fastly/fastly-exporter";
27     license = licenses.asl20;
28     maintainers = teams.deshaw.members;
29     mainProgram = "fastly-exporter";
30   };