Files
nixpkgs/pkgs/by-name/pr/prom2json/package.nix
quantenzitrone 6074f37164 prom2json: move to pkgs/by-name
this shouldn't create any rebuilds
2026-02-18 22:36:14 +01:00

28 lines
637 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "prom2json";
version = "1.5.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "prometheus";
repo = "prom2json";
sha256 = "sha256-Zd3p1anHleKAkFcHEx7tgpxjTlb5OvdWXFNNyfJ63+w=";
};
vendorHash = "sha256-PZXuhPpO02ix88RtBpsGaQxgQNVn+LW09rrN66+mCpw=";
meta = {
description = "Tool to scrape a Prometheus client and dump the result as JSON";
mainProgram = "prom2json";
homepage = "https://github.com/prometheus/prom2json";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ benley ];
};
}