restinio: fix build (#375955)
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / json-exporter.nix
blob0e9f7dbd63eae5086eb1274e93bc60e6b6456090
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   nixosTests,
6 }:
8 buildGoModule rec {
9   pname = "prometheus-json-exporter";
10   version = "0.6.0";
12   src = fetchFromGitHub {
13     owner = "prometheus-community";
14     repo = "json_exporter";
15     rev = "v${version}";
16     sha256 = "sha256-5tFhk62ewRE87lxgVM2bytV9GbXT5iAwbJqklohYDvM=";
17   };
19   vendorHash = "sha256-Hij3lh92OCH+sTrzNl/KkjLAhPGffzzmxhPDO2wG0gA=";
21   passthru.tests = { inherit (nixosTests.prometheus-exporters) json; };
23   meta = with lib; {
24     description = "Prometheus exporter which scrapes remote JSON by JSONPath";
25     homepage = "https://github.com/prometheus-community/json_exporter";
26     license = licenses.asl20;
27     maintainers = with maintainers; [ willibutz ];
28     mainProgram = "json_exporter";
29   };