nixpkgs/pkgs/servers/monitoring/prometheus/prom2json.nix
Caleb Chase d12a130620
prom2json: 1.3.0 to 1.3.2 (#198809)
This builds successfully on Mac (Darwin) now, whereas previously it was
failing due to an old version of transitive dependency golang.org/x/sys.
2022-10-31 14:56:15 -04:00

24 lines
635 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "prom2json";
version = "1.3.2";
src = fetchFromGitHub {
rev = "v${version}";
owner = "prometheus";
repo = "prom2json";
sha256 = "sha256-5RPpgUEFLecu0qRg7KSNLwdUEiXeebrGdP/udCtq4z0=";
};
vendorSha256 = "sha256-fPGkqrnl21as1xiT279qPzkz01tDNOSMcsm/DSNHDU0=";
meta = with lib; {
description = "Tool to scrape a Prometheus client and dump the result as JSON";
homepage = "https://github.com/prometheus/prom2json";
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
}