mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
ff1a94e523
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.
26 lines
706 B
Nix
26 lines
706 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "bird-exporter";
|
|
version = "1.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "czerwonk";
|
|
repo = "bird_exporter";
|
|
rev = version;
|
|
sha256 = "sha256-aClwJ+J83iuZbfNP+Y1vKEjBULD5wh/R3TMceCccacc=";
|
|
};
|
|
|
|
vendorHash = "sha256-0EXRpehdpOYpq6H9udmNnQ24EucvAcPUKOlFSAAewbE=";
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) bird; };
|
|
|
|
meta = with lib; {
|
|
description = "Prometheus exporter for the bird routing daemon";
|
|
mainProgram = "bird_exporter";
|
|
homepage = "https://github.com/czerwonk/bird_exporter";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lukegb ];
|
|
};
|
|
}
|