nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 nixosTests,
6}:
7
8buildGoModule rec {
9 pname = "bird-exporter";
10 version = "1.4.3";
11
12 src = fetchFromGitHub {
13 owner = "czerwonk";
14 repo = "bird_exporter";
15 rev = version;
16 sha256 = "sha256-aClwJ+J83iuZbfNP+Y1vKEjBULD5wh/R3TMceCccacc=";
17 };
18
19 vendorHash = "sha256-0EXRpehdpOYpq6H9udmNnQ24EucvAcPUKOlFSAAewbE=";
20
21 passthru.tests = { inherit (nixosTests.prometheus-exporters) bird; };
22
23 meta = {
24 description = "Prometheus exporter for the bird routing daemon";
25 mainProgram = "bird_exporter";
26 homepage = "https://github.com/czerwonk/bird_exporter";
27 license = lib.licenses.mit;
28 maintainers = with lib.maintainers; [ lukegb ];
29 };
30}