nixpkgs/pkgs/servers/monitoring/prometheus/rabbitmq-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

31 lines
745 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "rabbitmq_exporter";
version = "1.0.0-RC19";
src = fetchFromGitHub {
owner = "kbudde";
repo = "rabbitmq_exporter";
rev = "v${version}";
hash = "sha256-31A0afmARdHxflR3n59DaqmLpTXws4OqROHfnc6cLKw=";
};
vendorHash = "sha256-ER0vK0xYUbQT3bqUosQMFT7HBycb3U8oI4Eak72myzs=";
ldflags = [ "-s" "-w" ];
checkFlags = [
# Disable flaky tests on Darwin
"-skip=TestWholeApp|TestExporter"
];
meta = with lib; {
description = "Prometheus exporter for RabbitMQ";
mainProgram = "rabbitmq_exporter";
homepage = "https://github.com/kbudde/rabbitmq_exporter";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}