Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "junos-czerwonk-exporter";
9 version = "0.14.3";
10
11 src = fetchFromGitHub {
12 owner = "czerwonk";
13 repo = "junos_exporter";
14 rev = version;
15 sha256 = "sha256-m8CveakbnxIjqFW1VwSD/sDhpf12mbZRJdwTOLaBYmc=";
16 };
17
18 vendorHash = "sha256-zD5QkpyeqrmX0zGgdQg9yQQrX/+0Xz+Q04IzpO+Qc5Q=";
19
20 meta = with lib; {
21 description = "Exporter for metrics from devices running JunOS";
22 mainProgram = "junos_exporter";
23 homepage = "https://github.com/czerwonk/junos_exporter";
24 license = licenses.mit;
25 teams = [ teams.wdz ];
26 };
27}