nixpkgs/pkgs/servers/monitoring/prometheus/cloudflare-exporter.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

25 lines
647 B
Nix

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "cloudflare-exporter";
version = "0.0.14";
src = fetchFromGitHub {
rev = version;
owner = "lablabs";
repo = pname;
sha256 = "sha256-A7JnHx9yipTwv63287BqmGrJ3yQ21NhB1z7rrHe6Ok8=";
};
vendorHash = "sha256-B/+UTkoGAoJLMr+zdXXSC2CWGHx+Iu5E2qp4AA/nmHM=";
meta = with lib; {
description = "Prometheus Cloudflare Exporter";
mainProgram = "cloudflare-exporter";
homepage = "https://github.com/lablabs/cloudflare-exporter";
license = licenses.asl20;
maintainers = with maintainers; [ bbigras ];
platforms = platforms.linux;
};
}